forked from ghk/kawaldesa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog4net.config
107 lines (95 loc) · 3.7 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?xml version="1.0"?>
<log4net>
<appender name="RootAppender" type="log4net.Appender.RollingFileAppender">
<threshold value="INFO"/>
<file value=".\\App_Data\\logs\\app.log" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="1000KB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="ConsoleAppender" type="log4net.Appender.TraceAppender">
<threshold value="INFO" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="DailyAppender" type="log4net.Appender.RollingFileAppender">
<threshold value="INFO"/>
<file value=".\\App_Data\\logs\\daily\\daily" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyy-MM-dd'.log'" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="ErrorAppender" type="log4net.Appender.RollingFileAppender">
<threshold value="WARN"/>
<file value=".\\App_Data\\logs\\error\\error.log" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="1000KB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="BenchmarkAppender" type="log4net.Appender.RollingFileAppender">
<file value=".\\App_Data\\logs\\benchmark\\benchmark" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyy-MM-dd'.log'" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%date] %message%newline" />
</layout>
</appender>
<appender name="WorkforceAppender" type="log4net.Appender.RollingFileAppender">
<file value=".\\App_Data\\logs\\workforce\\" />
<datePattern value="yyyy-MM-dd'.log'" />
<staticLogFileName value="false" />
<rollingStyle value="Composite" />
<maxSizeRollBackups value="30" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="CreditAppender" type="log4net.Appender.RollingFileAppender">
<file value=".\\App_Data\\logs\\credit\\" />
<appendToFile value="true" />
<datePattern value="yyyy-MM-dd'.log'" />
<staticLogFileName value="false" />
<rollingStyle value="Composite" />
<maxSizeRollBackups value="30" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<root>
<level value="INFO" />
<appender-ref ref="RootAppender" />
<appender-ref ref="ConsoleAppender" />
<appender-ref ref="ErrorAppender" />
</root>
<logger name="App">
<level value="INFO" />
<appender-ref ref="DailyAppender" />
</logger>
<logger name="App.Controllers.WorkforceController">
<level value="INFO" />
<appender-ref ref="WorkforceAppender" />
</logger>
<logger name="App.Controllers.CreditController">
<level value="INFO" />
<appender-ref ref="CreditAppender" />
</logger>
<logger name="Benchmark">
<level value="DEBUG" />
<appender-ref ref="BenchmarkAppender" />
</logger>
</log4net>