-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.log4net
83 lines (78 loc) · 3.33 KB
/
web.log4net
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
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission="false" />
</configSections>
<log4net>
<appender name="SmtpAppender" type="log4net.Appender.SmtpAppender">
<to value="clipflair@cti.gr" />
<from value="clipflair@cti.gr" />
<subject value="Trafilm error occured!" />
<smtpHost value="mail.cti.gr" />
<bufferSize value="256" />
<lossy value="true" />
<evaluator type="log4net.spi.LevelEvaluator">
<threshold value="ERROR" />
</evaluator>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-5p %d [ThreadId: %t] Class:%c{1} Method:%M %nMESSAGE:%n%m%n%n" />
</layout>
</appender>
<appender name="RollingAppender" type="log4net.Appender.RollingFileAppender" >
<file type="log4net.Util.PatternString" value="MonoX\ApplicationData\logs\[%date{yyyy-MM-dd}]_MonoX.log" />
<appendToFile value="true" />
<maximumFileSize value="5MB" />
<maxSizeRollBackups value="5" />
<param name="RollingStyle" value="Size" />
<param name="Threshold" value="WARN"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger [%ndc] - %message%newline" />
</layout>
</appender>
<appender name="InfoRollingAppender" type="log4net.Appender.RollingFileAppender" >
<file type="log4net.Util.PatternString" value="MonoX\ApplicationData\logs\[%date{yyyy-MM-dd}]_MonoX_Info.log" />
<appendToFile value="true" />
<maximumFileSize value="5MB" />
<maxSizeRollBackups value="5" />
<param name="RollingStyle" value="Size" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger [%ndc] - %message%newline" />
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<levelMin value="INFO" />
<levelMax value="INFO" />
</filter>
</appender>
<appender name="DebugRollingAppender" type="log4net.Appender.RollingFileAppender" >
<file type="log4net.Util.PatternString" value="MonoX\ApplicationData\logs\[%date{yyyy-MM-dd}]_MonoX_Debug.log" />
<appendToFile value="true" />
<maximumFileSize value="5MB" />
<maxSizeRollBackups value="5" />
<param name="RollingStyle" value="Size" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger [%ndc] - %message%newline" />
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<levelMin value="DEBUG" />
<levelMax value="DEBUG" />
</filter>
</appender>
<root>
<level value="debug" />
<appender-ref ref="RollingAppender" />
<appender-ref ref="InfoRollingAppender" />
<appender-ref ref="DebugRollingAppender" />
<appender-ref ref="SmtpAppender" />
</root>
<logger name="MonoX" additivity="false">
<level value="DEBUG" />
<appender-ref ref="RollingAppender" />
<appender-ref ref="InfoRollingAppender" />
<appender-ref ref="DebugRollingAppender" />
<appender-ref ref="SmtpAppender" />
</logger>
<logger name="DotNetOpenAuth">
<level value="WARN" />
</logger>
</log4net>
</configuration>