-
-
Notifications
You must be signed in to change notification settings - Fork 583
/
logback.xml
78 lines (69 loc) · 3.26 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
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${user.home}/.dependency-track/dependency-track.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/.dependency-track/dependency-track.%i.log</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>9</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>10MB</maxFileSize>
</triggeringPolicy>
<encoder>
<pattern>%date [%marker] %level [%logger] %msg%n</pattern>
</encoder>
</appender>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%date %level [%logger{0}] %msg%n</pattern>
</encoder>
</appender>
<appender name="SECURITY_CONSOLE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${user.home}/.dependency-track/dependency-track-audit.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/.dependency-track/dependency-track-audit.%i.log</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>9</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>10MB</maxFileSize>
</triggeringPolicy>
<filter class="org.owasp.security.logging.filter.SecurityMarkerFilter"/>
<encoder>
<pattern>%date [%marker] %level - %msg%n</pattern>
</encoder>
</appender>
<appender name="EMBEDDED_SERVER" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${user.home}/.dependency-track/server.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/.dependency-track/server.%i.log</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>9</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>10MB</maxFileSize>
</triggeringPolicy>
<encoder>
<pattern>%date [%marker] %level [%logger] %msg%n</pattern>
</encoder>
</appender>
<logger name="alpine" level="${dependencyTrack.logging.level:-INFO}" additivity="false">
<appender-ref ref="STDOUT" />
<appender-ref ref="FILE" />
<appender-ref ref="SECURITY_CONSOLE" />
</logger>
<logger name="org.dependencytrack" level="${dependencyTrack.logging.level:-INFO}" additivity="false">
<appender-ref ref="STDOUT" />
<appender-ref ref="FILE" />
<appender-ref ref="SECURITY_CONSOLE" />
</logger>
<logger name="org.eclipse.jetty" level="${dependencyTrack.logging.level:-INFO}" additivity="false">
<appender-ref ref="EMBEDDED_SERVER" />
</logger>
<root level="WARN">
<appender-ref ref="STDOUT" />
<appender-ref ref="FILE" />
<appender-ref ref="SECURITY_CONSOLE" />
</root>
</configuration>