Thanks to visit codestin.com
Credit goes to github.com

Skip to content

affecto/dotnet-Logging

Repository files navigation

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

About

Interfaces and base implementation for creating and using loggers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages