I am using log4net DebugAppender (or TraceAppender). I have configured the appender like this:
<appender name="DebugAppender" type="log4net.Appender.DebugAppender">
<immediateFlush value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%level %message%newline" />
</layout>
</appender>
Loggers in the code are declared in the usual per-class manner:
private static readonly ILog Log =
LogManager.GetLogger(typeof(TradingApiRouteCollectionExtensions));
Output in the Output windows looks like this:
Acme.Common.Configuration.TradingApiRouteCollectionExtensions: DEBUG Registering route prefix 'session' for service Acme.Session.SessionService Acme.Common.Configuration.TradingApiRouteCollectionExtensions: DEBUG Web methods found for type Acme.Session.SessionService: Acme.Common.Configuration.TradingApiRouteCollectionExtensions: DEBUG session/
Notice how every line starts with the logger type name. I want to suppress this as I didn't ask for it in the configuration and I don't want it. I can't see any obvious way to do this. Is it possible?