-
-
Notifications
You must be signed in to change notification settings - Fork 666
/
log4net.config
43 lines (40 loc) · 1.6 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
<?xml version="1.0" encoding="utf-8" ?>
<!-- log4Net-Konfigurationsdatei -->
<log4net>
<root>
<!--
moegliche Loglevel:
ALL > DEBUG > INFO > WARN > ERROR > FATAL > OFF
-->
<level value="ALL" />
<appender-ref ref="TraceAppender" />
<appender-ref ref="ConsoleAppender" />
<appender-ref ref="ConsoleAppender_Error" />
</root>
<appender name="TraceAppender" type="log4net.Appender.TraceAppender">
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
<!--<conversionPattern value="%date [%thread] %-5level %logger (%20.60file:%line).%method - %message%newline" />-->
</layout>
</appender>
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
<target value="Console.Out" />
<filter type="log4net.Filter.LevelRangeFilter">
<levelMin value="DEBUG" />
<levelMax value="WARN" />
</filter>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-5level %method - %message%newline" />
</layout>
</appender>
<appender name="ConsoleAppender_Error" type="log4net.Appender.ConsoleAppender" >
<target value="Console.Error" />
<filter type="log4net.Filter.LevelRangeFilter">
<levelMin value="ERROR" />
<levelMax value="FATAL" />
</filter>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-5level %method - %message%newline" />
</layout>
</appender>
</log4net>