I'm using log4net with .NET Common.Logging. I configured a message pattern to include method and class name like so:
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-5level [%M %C] - %message%newline" />
</layout>
The problem is I always get the name of the Common.Logging method and class:
FATAL [Fatal Common.Logging.Factory.AbstractLogger] - log message
INFO [Info Common.Logging.Factory.AbstractLogger] - log message
DEBUG [Debug Common.Logging.Factory.AbstractLogger] - log message
It is most unuseful. Is there a way of printing my method name?