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>
|
2014-12-12 13:02:13 +08:00
|
|
|
|
<appSettings>
|
|
|
|
|
<add key="version" value="1.1.0"/>
|
|
|
|
|
</appSettings>
|
2013-12-23 19:21:51 +08:00
|
|
|
|
<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>
|
2014-07-18 20:00:55 +08:00
|
|
|
|
<runtime>
|
|
|
|
|
<!--http://stackoverflow.com/questions/186854/how-to-prevent-an-exception-in-a-background-thread-from-terminating-an-applicati-->
|
|
|
|
|
<legacyUnhandledExceptionPolicy enabled="1" />
|
|
|
|
|
</runtime>
|
2014-12-12 13:02:13 +08:00
|
|
|
|
</configuration>
|