Sorry, here is the configuration entry
<appender name="DebugAppender" type="log4net.Appender.DebugAppender">
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level [%thread] %logger -
%message%newline" />
</layout>
</appender>
Whatty
-----Original Message-----
From: Steven Whatmore [mailto:[email protected]]
Sent: Tuesday, May 11, 2010 12:58 PM
To: [email protected]
Subject: Controlling the log message format
Good morning,
I would like to be able to control the format of the message, removing the
initial prefix
As an example if the format of my message is:
com.pf.util.implementation.AppConfigurationImpl: 2010-05-11
12:50:05,466 DEBUG [9] com.pf.util.implementation.AppConfigurationImpl -
handling sessionStart event
I would like to remove the initial
"com.pf.util.implementation.AppConfigurationImpl" part resulting in:
2010-05-11 12:50:05,466 DEBUG [9]
com.pf.util.implementation.AppConfigurationImpl - handling sessionStart event
I have tried it through configuration but can't seem to control the prefix
I took a quick look through the code and as far as I can tell this is not
configurable.
Am I correct?
Whatty