2013-12-23 23:53:38 +08:00
|
|
|
|
<?xml version="1.0"?>
|
2013-12-23 19:21:51 +08:00
|
|
|
|
<configuration>
|
|
|
|
|
<configSections>
|
|
|
|
|
<section name="log4net" type="System.Configuration.IgnoreSectionHandler"/>
|
|
|
|
|
</configSections>
|
|
|
|
|
<log4net>
|
|
|
|
|
<appender name="LogFileAppender" type="log4net.Appender.FileAppender">
|
2013-12-23 23:53:38 +08:00
|
|
|
|
<file value="log.txt"/>
|
|
|
|
|
<appendToFile value="true"/>
|
|
|
|
|
<rollingStyle value="Date"/>
|
|
|
|
|
<datePattern value="yyyyMMdd-HH:mm:ss"/>
|
2013-12-23 19:21:51 +08:00
|
|
|
|
<layout type="log4net.Layout.PatternLayout">
|
2013-12-23 23:53:38 +08:00
|
|
|
|
<conversionPattern value="Date:%date Level:%-5level Msg:%message%newline"/>
|
2013-12-23 19:21:51 +08:00
|
|
|
|
</layout>
|
|
|
|
|
</appender>
|
|
|
|
|
<root>
|
2014-03-23 17:43:46 +08:00
|
|
|
|
<!-- ALL < DEBUG < INFO < WARN < ERROR < FATAL < OFF-->
|
|
|
|
|
<level value="WARN" />
|
2013-12-23 23:53:38 +08:00
|
|
|
|
<appender-ref ref="LogFileAppender"/>
|
2013-12-23 19:21:51 +08:00
|
|
|
|
</root>
|
|
|
|
|
</log4net>
|
2014-03-23 17:43:46 +08:00
|
|
|
|
<startup>
|
|
|
|
|
<supportedRuntime version="v2.0.50727"/>
|
2014-03-23 20:27:17 +08:00
|
|
|
|
<supportedRuntime version="v4.0"/>
|
2014-03-23 17:43:46 +08:00
|
|
|
|
</startup>
|
|
|
|
|
</configuration>
|