generated from alpas/starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app_log_config.xml
34 lines (30 loc) · 1.21 KB
/
app_log_config.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
<configuration scan="true">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<charset>UTF-8</charset>
<pattern>%d{HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{35}) - %msg%n</pattern>
</encoder>
</appender>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>storage/logs/alpas.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>storage/logs/logFile.%d.log</fileNamePattern>
<!-- keep 10 days' worth of history capped at 50MB total size -->
<maxHistory>10</maxHistory>
<totalSizeCap>50MB</totalSizeCap>
</rollingPolicy>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
</appender>
<root level="error">
<appender-ref ref="STDOUT"/>
</root>
<logger name="alpas" level="debug">
<appender-ref ref="FILE"/>
</logger>
<logger name="dev.alpas.http.HttpCall" level="warn">
<appender-ref ref="FILE"/>
</logger>
</configuration>