generated from alpas/starter
-
Notifications
You must be signed in to change notification settings - Fork 4
/
app_log_config.xml
36 lines (32 loc) · 1.29 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
35
36
<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="info">
<appender-ref ref="FILE"/>
</logger>
<logger name="dev.alpas.http.HttpCall" level="warn">
<appender-ref ref="FILE"/>
</logger>
<logger name="me.liuwj.ktorm.database.Database" level="warn">
</logger>
</configuration>