Just want to write Exception message to the Flat File Listener.

Topics: Exception Handling Application Block, Logging Application Block
Sep 18, 2012 at 2:04 PM


When we write the message using a TextFormatter to a log it is not just message, but all the information about the exception.

How to get just the message from the exception to be written to the log ?

Sep 19, 2012 at 12:21 AM

To do that you need to create a new ExceptionFormatter that formats the exception as you would like.  See Adding a New Exception Formatter for instructions.

Randy Levy
Enterprise Library support engineer