This format works with my configuration
<layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%-5level [%logger] - %message%newline" /> </layout>
My registrar is defined as
private static readonly Common.Logging.ILog logger = Common.Logging.LogManager.GetCurrentClassLogger();
I use these unmodified dlls
- Common.Logging.dll ver 2.0.0.0
- Common.Logging.Log4Net.dll ver 2.0.0.0
- log4net.dll ver 1.2.10
Update: In registration messages, I add the method name to the registration call as text, so I don't have the overhead of parsing the call stack to get the method name.
source share