forked from worawutboy/ProxyDevFeeClaymore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog4net.config
71 lines (66 loc) · 2.62 KB
/
log4net.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net debug="true">
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="logs\error\" />
<appendToFile value="true" />
<filter type="log4net.Filter.LevelMatchFilter">
<acceptOnMatch value="true" />
<levelToMatch value="ERROR" />
</filter>
<filter type="log4net.Filter.DenyAllFilter" />
<rollingStyle value="Date" />
<datePattern value="dd.MM.yyyy'.log'" />
<staticLogFileName value="false" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="10MB" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-5p %d %5rms %-22.22c{1} %-18.18M - %m%n" />
</layout>
</appender>
<appender name="RollingLogFileAppenderInfo" type="log4net.Appender.RollingFileAppender">
<file value="logs\info\" />
<appendToFile value="true" />
<filter type="log4net.Filter.LevelMatchFilter">
<levelMin value="INFO"/>
<acceptOnMatch value="true" />
<levelToMatch value="INFO" />
</filter>
<filter type="log4net.Filter.DenyAllFilter" />
<rollingStyle value="Date" />
<datePattern value="dd.MM.yyyy'.log'" />
<staticLogFileName value="false" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="10MB" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-5p %d %5rms %-22.22c{1} %-18.18M - %m%n" />
</layout>
</appender>
<appender name="RollingLogFileAppenderWarn" type="log4net.Appender.RollingFileAppender">
<file value="logs\warn\" />
<appendToFile value="true" />
<filter type="log4net.Filter.LevelMatchFilter">
<acceptOnMatch value="true" />
<levelToMatch value="WARN" />
</filter>
<filter type="log4net.Filter.DenyAllFilter" />
<rollingStyle value="Date" />
<datePattern value="dd.MM.yyyy'.log'" />
<staticLogFileName value="false" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="10MB" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-5p %d %5rms %-22.22c{1} %-18.18M - %m%n" />
</layout>
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="RollingLogFileAppender" />
<appender-ref ref="RollingLogFileAppenderInfo" />
<appender-ref ref="RollingLogFileAppenderWarn" />
</root>
</log4net>
</configuration>