프로젝트

일반

사용자정보

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

markus / MarkusAutoUpdate / src / NetSparkle.Samples.NetFramework.WPF / Log.config @ 7e810f54

이력 | 보기 | 이력해설 | 다운로드 (1.16 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 type="log4net.Util.PatternString" value="${programdata}\MARKUS\AppUpdate\Log\"/>
15
      <appendtofile value="true"/>
16
      <datepattern value="'MarkusUpdate_'yyyy-MM-dd'.log'"/>
17
      <staticlogfilename value="false"/>
18
      <rollingstyle value="Date"/>
19
      <layout type="log4net.Layout.PatternLayout">
20
        <conversionpattern value="%d [%t] %-5p - %m%n"/>
21
      </layout>
22
    </appender>
23
    <root>
24
      <level value="All" />
25
      <!-- <appender-ref ref="EventLogAppender" />-->
26
      <appender-ref ref="RollingFileAppender" />
27
    </root>
28
  </log4net>
29
</configuration>
클립보드 이미지 추가 (최대 크기: 500 MB)