-
Notifications
You must be signed in to change notification settings - Fork 2
/
logback-debug.xml
37 lines (36 loc) · 1.64 KB
/
logback-debug.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
<configuration>
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
<resetJUL>true</resetJUL>
</contextListener>
<timestamp key="startTimestamp" datePattern="yyyyMMddHHmmssSSS"/>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<withJansi>true</withJansi>
<encoder>
<pattern>%d %-24([%.-22(%thread)]) %highlight(%-5level) %-48logger{48} - %highlight(%msg){}%n{}%ex{full,DISPLAY_EX_EVAL}
</pattern>
</encoder>
</appender>
<property name="LOG_DIR" value="logs/"/>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_DIR}/jNeedle.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${LOG_DIR}/jNeedle.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<!-- keep 60 days worth of history capped at 5GB total size & 10MB per file -->
<maxHistory>60</maxHistory>
<totalSizeCap>5GB</totalSizeCap>
<maxFileSize>10MB</maxFileSize>
</rollingPolicy>
<encoder>
<pattern>%d %-32([%.-30(%thread)]) %-5level %-64logger{64} - %msg{}%n{}%ex{full, DISPLAY_EX_EVAL}</pattern>
</encoder>
</appender>
<logger level="WARN" name="me.coley.cafedude" additivity="false">
<appender-ref ref="STDOUT"/>
<appender-ref ref="FILE"/>
</logger>
<root level="DEBUG"> <!-- Change this if you need debug logging -->
<appender-ref ref="FILE"/>
<appender-ref ref="STDOUT"/>
</root>
</configuration>