-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.config
63 lines (48 loc) · 1.89 KB
/
app.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
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<log4net>
<appender name="ColoredConsoleAppenderCommand" type="log4net.Appender.ColoredConsoleAppender">
<Threshold value="INFO" />
<mapping>
<level value="DEBUG" />
<foreColor value="White, HighIntensity" />
<backColor value="Green" />
</mapping>
<layout type="log4net.Layout.PatternLayout">
<param name="Header" value="[Header]\r\n"/>
<param name="Footer" value="[Footer]\r\n"/>
<param name="ConversionPattern" value="%d %m%n"/>
</layout>
</appender>
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<param name="Header" value="[Header]\r\n"/>
<param name="Footer" value="[Footer]\r\n"/>
<param name="ConversionPattern" value="%d %c %m%n"/>
</layout>
</appender>
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="logfiles/log.txt" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<immediateFlush value="true" />
<datePattern value="yyyyMMdd" />
<StaticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%d %c %m%n" />
</layout>
</appender>
<root>
<level value="ERROR"/>
<appender-ref ref="ConsoleAppender"/>
</root>
<logger name="log4netexample" additivity="false" >
<level value="DEBUG" />
<appender-ref ref="ColoredConsoleAppenderCommand" />
<appender-ref ref="RollingLogFileAppender" />
</logger>
</log4net>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>