提交 | 用户 | 时间
|
e7c126
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
H |
2 |
<configuration debug="false" scan="true" scanPeriod="1 seconds"> |
|
3 |
|
|
4 |
<contextName>logback</contextName> |
4a47e4
|
5 |
<property name="xxl-job-log.path" value="/data/applogs/xxl-job/xxl-job-admin.log"/> |
e7c126
|
6 |
|
H |
7 |
<appender name="console" class="ch.qos.logback.core.ConsoleAppender"> |
|
8 |
<encoder> |
|
9 |
<pattern>%d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n</pattern> |
|
10 |
</encoder> |
|
11 |
</appender> |
|
12 |
|
|
13 |
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
4a47e4
|
14 |
<file>${xxl-job-log.path}</file> |
e7c126
|
15 |
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
4a47e4
|
16 |
<fileNamePattern>${xxl-job-log.path}.%d{yyyy-MM-dd}.zip</fileNamePattern> |
e7c126
|
17 |
</rollingPolicy> |
H |
18 |
<encoder> |
|
19 |
<pattern>%date %level [%thread] %logger{36} [%file : %line] %msg%n |
|
20 |
</pattern> |
|
21 |
</encoder> |
|
22 |
</appender> |
|
23 |
|
|
24 |
<root level="info"> |
|
25 |
<appender-ref ref="console"/> |
|
26 |
<appender-ref ref="file"/> |
|
27 |
</root> |
|
28 |
|
|
29 |
</configuration> |