<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1" />
</startup>
<log4net>
<appender name="ConsoleAppender" type="log4net.Appender.ColoredConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %level [%thread] %logger{1} %username - %message%newline" />
</layout>
<mapping>
<level value="INFO" />
<foreColor value="Blue, HighIntensity" />
<backColor value="White" />
</mapping>
<mapping>
<level value="DEBUG" />
<foreColor value="Blue, HighIntensity" />
<backColor value="White" />
</mapping>
<mapping>
<level value="WARN" />
<foreColor value="Yellow, HighIntensity" />
</mapping>
<mapping>
<level value="ERROR" />
<foreColor value="Red, HighIntensity" />
</mapping>
</appender>
<appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
<file value="Logs\"/>
<appendtofile value="true"/>
<datepattern value="yyyy-MM-dd'_Log.log'"/>
<staticlogfilename value="false"/>
<rollingstyle value="Date"/>
<layout type="log4net.Layout.PatternLayout">
<conversionpattern value="%d [%t] %-5p - %m%n"/>
</layout>
</appender>
<root>
<level value="ALL"/>
<appender-ref ref="RollingFile"/>
<appender-ref ref="ConsoleAppender" />
</root>
</log4net>
</configuration>