exception logging - additional data?

  • Thread starter Thread starter JV
  • Start date Start date
J

JV

I just started getting into this, so I hope this isn't a stupid question,
but I noticed that the logging block has a feature for logging an additional
chunk of contextual data using IDictionary (Hashtable usually).

When I log my exceptions, it works, but I would like to be able to log some
additional data about what was going on (shopping cart information in this
case). I have looked around the documentation and about the only option I
can see is for me to artificially wrap the exception in another outer
exception containing that information. Is there some other option I'm
missing?
 
By the way, this is Enterprise Library Exception Handling block I'm talking
about.

"JV" wrote
 
Back
Top