markus / KCOM / Log.config @ 53f99751
이력 | 보기 | 이력해설 | 다운로드 (990 Bytes)
1 | 0a3384a1 | 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 | 77cdac33 | taeseongkim | <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"> |
8 | <file type="log4net.Util.PatternString" value="${ALLUSERSPROFILE}\markus\Log\.log"/> |
||
9 | <appendToFile value="true" /> |
||
10 | <rollingStyle value="Composite" /> |
||
11 | <datePattern value="yyyyMMdd" /> |
||
12 | <maxSizeRollBackups value="6" /> |
||
13 | <preserveLogFileNameExtension value="true"/> |
||
14 | <staticLogFileName value="false" /> |
||
15 | <maximumFileSize value="5MB" /> |
||
16 | 0a3384a1 | taeseongkim | <layout type="log4net.Layout.PatternLayout"> |
17 | <conversionpattern value="%d [%t] %-5p - %m%n"/> |
||
18 | </layout> |
||
19 | </appender> |
||
20 | <root> |
||
21 | <level value="All" /> |
||
22 | <!-- <appender-ref ref="EventLogAppender" />--> |
||
23 | <appender-ref ref="RollingFileAppender" /> |
||
24 | </root> |
||
25 | </log4net> |
||
26 | </configuration> |