프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / DownloadManager / Log.config @ a7578175

이력 | 보기 | 이력해설 | 다운로드 (1.23 KB)

1
<?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
      <file value="${programdata}\MARKUS\Downloader\Log\{0}.log"/>
15
      <appendtofile value="true"/>
16
		<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
    </appender>
26
    <root>
27
      <level value="All" />
28
      <!-- <appender-ref ref="EventLogAppender" />-->
29
      <appender-ref ref="RollingFileAppender" />
30
    </root>
31
  </log4net>
32
</configuration>
클립보드 이미지 추가 (최대 크기: 500 MB)