56 lines
No EOL
2.1 KiB
XML
56 lines
No EOL
2.1 KiB
XML
<?xml version="1.0"?>
|
|
<!-- xsi:noNamespaceSchemaLocation="http://csharptest.net/downloads/schema/log4net.xsd"-->
|
|
|
|
<configuration>
|
|
<configSections>
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
|
|
</configSections>
|
|
|
|
<log4net xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="https://raw.githack.com/hormelcookies/log4net-Schema/1e6a4227575fd5ad493993af8066bfad946da186/log4net.xsd">
|
|
<appender name="ColoredConsoleAppender" type="log4net.Appender.ColoredConsoleAppender">
|
|
<mapping>
|
|
<level value="FATAL" />
|
|
<foreColor value="White, HighIntensity" />
|
|
<backColor value="Red, HighIntensity" />
|
|
</mapping>
|
|
<mapping>
|
|
<level value="ERROR" />
|
|
<foreColor value="Red, HighIntensity" />
|
|
</mapping>
|
|
<mapping>
|
|
<level value="WARN" />
|
|
<foreColor value="Yellow" />
|
|
</mapping>
|
|
<mapping>
|
|
<level value="INFO" />
|
|
<foreColor value="Green" />
|
|
</mapping>
|
|
<mapping>
|
|
<level value="DEBUG" />
|
|
<foreColor value="White" />
|
|
</mapping>
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
<conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
|
|
</layout>
|
|
</appender>
|
|
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
|
|
<file type="log4net.Util.PatternString" value="GD-ROM-Explorer-%date{yyyy-MM-dd_HH-mm}.log" />
|
|
<rollingStyle value="Once" />
|
|
<maxSizeRollBackups value="5" />
|
|
|
|
<appendToFile value="true" />
|
|
<lockingModel type="log4net.Appender.FileAppender+MinimalLock"/>
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
|
|
</layout>
|
|
</appender>
|
|
<root>
|
|
<level value="DEBUG" />
|
|
<appender-ref ref="ColoredConsoleAppender" />
|
|
<appender-ref ref="RollingFileAppender" />
|
|
</root>
|
|
</log4net>
|
|
|
|
|
|
</configuration> |