I have created a custom Exception that has data pertaining to our application. I want to ensure this data gets logged when an exception is thrown and logged to the event log.

I have tried creating a custom TextFormatter which is being called but am not sure how to access the current exception so I can add our custom information to the log entry.

There is something I am not understanding and would appreciate any help around adding custom tokens (and data) to Enterprise Library 5.0 TextFormatters.

Thanks,
...Marc