Exception Logging Strategy
-
On more than one occasion, and again now, I face the problem of needing to aggregate logged exception data. Often the message includes one or more instance specific values, such as an account number etc. My problem is I must log the account number, or line item number, or whatever, but I also need top be able to, e.g. pull a report on how many invoices exports failed because the account was on hold. I'm looking for a way to factor the instance specific information out of the message, making the message more of an event description, which is consistent for every occurrence of a certain exception, and additional data available for closer inspection. Using some sort of Event Type, with 'user' defined fields per event seems like a good concept for me, but what are my other options?