markus / DownloadManager / Log.config @ 94c6e9ae
이력 | 보기 | 이력해설 | 다운로드 (1.23 KB)
1 | 664ea2e1 | taeseongkim | <?xml version="1.0" encoding="utf-8"?> |
---|---|---|---|
2 | <configuration> |
||
3 | <configSections> |
||
4 | <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> |
||
5 | </configSections> |
||
6 | <log4net> |
||
7 | <!--<appender name="EventLogAppender" type="log4net.Appender.EventLogAppender"> |
||
8 | <applicationName value="ServiceStation"/> |
||
9 | <layout type="log4net.Layout.PatternLayout"> |
||
10 | <conversionPattern value="%date [%thread] %-5level %logger - %message%newline" /> |
||
11 | </layout> |
||
12 | </appender>--> |
||
13 | <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"> |
||
14 | 1223cf64 | taeseongkim | <file value="${programdata}\MARKUS\Downloader\Log\{0}.log"/> |
15 | 664ea2e1 | taeseongkim | <appendtofile value="true"/> |
16 | 1223cf64 | taeseongkim | <maxSizeRollBackups value="10" /> |
17 | <maximumFileSize value="10485760" /> |
||
18 | <rollingStyle value="Size" /> |
||
19 | <staticlogfilename value="true"/> |
||
20 | <layout type="log4net.Layout.PatternLayout"> |
||
21 | <header value="[Header]"/> |
||
22 | <footer value="[Footer] "/> |
||
23 | <conversionPattern value="%date [%thread] %-5level %logger [%ndc] - %message%newline" /> |
||
24 | </layout> |
||
25 | 664ea2e1 | taeseongkim | </appender> |
26 | <root> |
||
27 | <level value="All" /> |
||
28 | <!-- <appender-ref ref="EventLogAppender" />--> |
||
29 | <appender-ref ref="RollingFileAppender" /> |
||
30 | </root> |
||
31 | </log4net> |
||
32 | </configuration> |