-
Notifications
You must be signed in to change notification settings - Fork 8
/
logback-dev.xml
60 lines (54 loc) · 2.19 KB
/
logback-dev.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
<!--
| Local developer build logging configuration.
| * console log shows overall info+ build messages and project errors
| * overall build.log file includes all build log messages
| * project-specific build.log files include corresponding project build log messages
-->
<configuration>
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator" />
<!--
| terse console log, info+ overall build messages, error+ project messages
-->
<appender name="STDOUT" class="io.takari.maven.logback.ConsoleAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
<filter class="io.takari.maven.logback.ProjectBuildLogFilter">
<passthroughThreshold>ERROR</passthroughThreshold>
<onMatch>DENY</onMatch>
</filter>
<encoder>
<pattern>%d{HH:mm:ss.SSS} %.-1level %msg%n</pattern>
</encoder>
</appender>
<!--
| write overall build log messages to ${cwd}/build.log file
| log entries include project artifactId and thread names
-->
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>build.log</file>
<rollingPolicy class="io.takari.maven.logback.BuildRollingPolicy">
<fileNamePattern>build-%i.log</fileNamePattern>
<maxIndex>2</maxIndex>
</rollingPolicy>
<encoder>
<pattern>%d{HH:mm:ss.SSS} %.-1level [%X{maven.project.artifactId:--}@%t] %msg%n</pattern>
</encoder>
</appender>
<!--
| write project-specific build log messages to ${project.build.directory}/build.log files
-->
<appender name="PROJECT" class="io.takari.maven.logback.ProjectBuildLogAppender">
<file>build.log</file>
<pattern>%d{HH:mm:ss.SSS} %.-1level %msg%n</pattern>
</appender>
<logger name="Sisu" level="INFO" />
<!-- suppress annoying @threadSafe and checksum failure warning messages -->
<logger name="org.apache.maven.lifecycle.internal.builder.BuilderCommon" level="ERROR" />
<logger name="org.eclipse.aether.internal.impl.WarnChecksumPolicy" level="ERROR" />
<root level="${consoleLevel:-info}">
<appender-ref ref="STDOUT" />
<appender-ref ref="FILE" />
<appender-ref ref="PROJECT" />
</root>
</configuration>