'How do I remove the assembly prefix from log4net's DebugAppender output?

When I use the DebugAppender in log4net, every single line has the fully qualified name of my application as a prefix. Is there a way to remove it? My file appender does not show it and I would like the debug appender to work the same:

To illustrate. Here is a sample line of output in my log file:

13:17:15.623 [  1]  INFO - Navigate: Async navigate to Configure

and here is the exact same line in the Debug window:

MyCompany.Mobile.App: 13:17:15.623 [  1]  INFO - Navigate: Async navigate to Configure

I want to get rid of the MyCompany.Mobile.App: part because it's just redundant noise to me.

How do I do this?

Here is the config file I use:

<log4net>
    <root>
        <level value="ALL" />
        <appender-ref ref="file" />
        <appender-ref ref="debug"/>
    </root>
    <appender name="debug" type="log4net.Appender.DebugAppender">
        <layout type="log4net.Layout.PatternLayout">
            <conversionPattern value="%date{HH:mm:ss.fff} [%3thread] %5level - %message%newline" />
        </layout>
    </appender>
    <appender name="file" type="log4net.Appender.RollingFileAppender">
        <file type="log4net.Util.PatternString" value="%env{TEMP}/GelSightMobile.log" />
        <appendToFile value="true" />
        <rollingStyle value="Size" />
        <maxSizeRollBackups value="5" />
        <maximumFileSize value="25MB" />
        <staticLogFileName value="true" />
        <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
        <layout type="log4net.Layout.PatternLayout">
            <conversionPattern value="%date{HH:mm:ss.fff} [%3thread] %5level - %message%newline" />
        </layout>
    </appender>
</log4net>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source