Search code examples
c#logginglog4netappender

log4net, configure ColoredConsoleAppender to not show exception


How can I make the ColoredConsoleAppender only show the message?

Despite leaving out %exception from conversionPattern both the exception-message and stacktrace is shown. If it cannot be done by configuration is there some method to override?


Solution

  • It turns out that I now know that it is possible and how to do it:

    Log4Net - Logging out the Exception stacktrace only for certain files