Description
The DebugAppender always uses the System.Diagnostics.Debug.Write(string,string) overload passing in the loggername as the category parameter.
It should be possible to omit the category parameter if having the loggername as category is not desired.
Attached is a patch implementing the desired new feature, which would be activated by configuration:
<appender name="DEBUG" type="log4net.Appender.DebugAppender"> <outputCategory value="false"/> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%-5level: %message%newline"/> </layout> </appender>
In my patch, the outputCategory parameter defaults to true, so the behavior doesnt change unless the new configuration is used.