logback.xml 794 Bytes
Newer Older
Melledy's avatar
Melledy committed
1
2
3
<Configuration>
  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
KingRainbow44's avatar
KingRainbow44 committed
4
      <pattern>[%d{HH:mm:ss}] [%highlight(%level)] %msg%n</pattern>
Melledy's avatar
Melledy committed
5
6
    </encoder>
  </appender>
Benjamin Elsdon's avatar
Benjamin Elsdon committed
7
8
9
10
11
12
13
14
15
16
  <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>logs/latest.log</file>
    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <fileNamePattern>logs/log.%d{yyyy-MM-dd}_%d{HH}.log.tar.gz</fileNamePattern>
      <maxHistory>24</maxHistory>
    </rollingPolicy>
    <encoder>
      <pattern>%d{yyyy-MM-dd'T'HH:mm:ss'Z'} - %m%n</pattern>
    </encoder>
  </appender>
Melledy's avatar
Melledy committed
17
18
19
  <logger name="org.reflections" level="OFF"/>
  <root level="INFO">
    <appender-ref ref="STDOUT" />
Benjamin Elsdon's avatar
Benjamin Elsdon committed
20
    <appender-ref ref="FILE" />
Melledy's avatar
Melledy committed
21
22
  </root>
</Configuration>