Log an Exception
"Collier, Mike" <[email protected]> Mon, 13 Dec 2004 18:41:31 -0500
| Newsgroups | gmane.comp.windows.dotnet.log4net.devel |
|---|---|
| Message-ID | <[email protected]> |
How would I log an exception (type, message, and stack trace) using, for example, the ConsoleAppender or FileAppender? It seems that the "%m" conversion character in PatternLayout prints my log message, and the exception type and message, but not the stack trace. I see that the ExceptionLayout prints out the exception information. I don't see a way to use the ExceptionLayout with appenders like the ConsoleAppender. I could use the ExceptionLayout with the ADONetAppender though. Do I need to implement my own conversion character? I'm using Log4NET 1.2.0 beta 8. Thanks! ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/