37 lines
1.4 KiB
XML
37 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<configuration>
|
|
<configSections>
|
|
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
|
|
|
|
</configSections>
|
|
<log4net>
|
|
<root>
|
|
<level value="ALL" />
|
|
<appender-ref ref="SysAppender" />
|
|
</root>
|
|
<logger name="WebLogger">
|
|
<level value="DEBUG" />
|
|
</logger>
|
|
<appender name="SysAppender" type="log4net.Appender.RollingFileAppender,log4net">
|
|
<param name="File" value="App_Data/" />
|
|
<param name="AppendToFile" value="true" />
|
|
<param name="RollingStyle" value="Date" />
|
|
<param name="DatePattern" value=""Logs_"yyyyMMdd".txt"" />
|
|
<param name="StaticLogFileName" value="false" />
|
|
<layout type="log4net.Layout.PatternLayout,log4net">
|
|
<param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n" />
|
|
<param name="Header" value=" ------------------------------------------------
" />
|
|
<param name="Footer" value=" ------------------------------------------------
" />
|
|
</layout>
|
|
</appender>
|
|
<appender name="consoleApp" type="log4net.Appender.ConsoleAppender,log4net">
|
|
<layout type="log4net.Layout.PatternLayout,log4net">
|
|
<param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n" />
|
|
</layout>
|
|
</appender>
|
|
</log4net>
|
|
<startup>
|
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
|
</startup>
|
|
</configuration> |