Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.51 KB

File metadata and controls

42 lines (32 loc) · 1.51 KB

Logging

Configuration

Version 3.0.0 introduced breaking change in configuration requiring separete configuration file named "log4net.config". The configuration file is structured according to log4net documentation.

Here is example of log4net.config content:

<log4net>
    <!-- A1 is set to be a ConsoleAppender -->
    <appender name="A1" type="log4net.Appender.ConsoleAppender">
 
        <!-- A1 uses PatternLayout -->
        <layout type="log4net.Layout.PatternLayout">
            <conversionPattern value="%-4timestamp [%thread] %-5level %logger %ndc - %message%newline" />
        </layout>
    </appender>
    
    <!-- Set root logger level to DEBUG and its only appender to A1 -->
    <root>
        <level value="DEBUG" />
        <appender-ref ref="A1" />
    </root>
</log4net>

Build status

Build status