-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogback.xml
More file actions
21 lines (19 loc) · 777 Bytes
/
logback.xml
File metadata and controls
21 lines (19 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="1 seconds" >
<appender name="DEFAULT" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/file.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>logs/%d{yyyy/MM}/file.%d{yyyy-MM-dd}.log.gz</fileNamePattern>
<maxHistory>30</maxHistory>
</rollingPolicy>
<!-- <encoder class="net.logstash.logback.encoder.LogstashEncoder" />
http://logback.qos.ch/manual/filters.html
-->
<encoder>
<pattern>%date{yyyy-MM-dd'T'HH:mm:ss.SSSZ} %-5level %logger - [%marker] %msg%n</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="DEFAULT" />
</root>
</configuration>