-
Notifications
You must be signed in to change notification settings - Fork 0
/
logback.xml
79 lines (68 loc) · 2.41 KB
/
logback.xml
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
<!--
logging configuration controlling which information is logged where
-->
<configuration>
<!-- console -->
<appender name="CONSOLE"
class="ch.qos.logback.core.ConsoleAppender">
<target>System.out</target>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-3level %logger{20}: %msg%n</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<!-- Log level for console. Levels are TRACE < DEBUG < INFO < WARN < ERROR-->
<level>TRACE</level>
</filter>
</appender>
<!-- record current time (for name of logfiles -->
<timestamp key="bySecond" datePattern="yyyy-MM-dd-HH:mm:ss" />
<!-- logfile for everything -->
<appender name="ALL" class="ch.qos.logback.core.FileAppender">
<file>logs/${bySecond}/all.log</file>
<append>true</append>
<encoder>
<Pattern>%d{HH:mm:ss} [%thread] %-3level %logger{20}: %msg%n</Pattern>
</encoder>
</appender>
<!-- logfile for soot -->
<appender name="SOOT" class="ch.qos.logback.core.FileAppender">
<file>logs/${bySecond}/soot.log</file>
<append>true</append>
<encoder>
<Pattern>%d{HH:mm:ss} [%thread] %-3level %logger{20}: %msg%n</Pattern>
</encoder>
</appender>
<!-- logfile for numerical-analysis -->
<appender name="NUMERICAL" class="ch.qos.logback.core.FileAppender">
<file>logs/${bySecond}/numerical.log</file>
<append>true</append>
<encoder>
<Pattern>%d{HH:mm:ss} [%thread] %-3level %logger{20}: %msg%n</Pattern>
</encoder>
</appender>
<!-- logfile for information unrelated to the numerical analysis -->
<appender name="NON-NUMERICAL" class="ch.qos.logback.core.FileAppender">
<file>logs/${bySecond}/non-numerical.log</file>
<append>true</append>
<encoder>
<Pattern>%d{HH:mm:ss} [%thread] %-3level %logger{20}: %msg%n</Pattern>
</encoder>
</appender>
<!-- log everything to ALL, CONSOLE, NON-NUMERICAL -->
<root level="trace">
<appender-ref ref="ALL" />
<appender-ref ref="CONSOLE" />
<appender-ref ref="NON-NUMERICAL" />
</root>
<!-- log numerical to NUMERICAL, CONSOLE, ALL -->
<logger name="ch.ethz.rse.numerical" level="trace" additivity="false">
<appender-ref ref="NUMERICAL" />
<appender-ref ref="CONSOLE" /> <!-- remove this line to hide from console -->
<appender-ref ref="ALL" />
</logger>
<!-- soot: only to SOOT and ALL (but nowhere else) -->
<logger name="soot" level="trace" additivity="false">
<appender-ref ref="SOOT" />
<appender-ref ref="ALL" />
</logger>
</configuration>