summaryrefslogtreecommitdiffstats
path: root/infra/minimal-distribution/src/main/resources/honeycomb-minimal-resources/config/logback.xml
blob: c294d184cdc48bdac5507ca367fa7ed14c31c5e4 (plain)
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
 <configuration scan="true">

  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
      <pattern>%date{"yyyy-MM-dd HH:mm:ss.SSS z"} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>
  <appender name="honeycomb.log" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>logs/honeycomb.log</file>

    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <fileNamePattern>logs/honeycomb.%d.log.zip</fileNamePattern>
      <maxHistory>1</maxHistory>
    </rollingPolicy>

    <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
      <maxFileSize>10MB</maxFileSize>
    </triggeringPolicy>

    <encoder>
      <pattern>%date{"yyyy-MM-dd HH:mm:ss.SSS z"} [%thread] %-5level %logger{35} - %msg%n</pattern>
    </encoder>
  </appender>

  <root level="error">
    <appender-ref ref="STDOUT" />
    <appender-ref ref="honeycomb.log" />
  </root>

  <logger name="org.opendaylight" level="INFO"/>
  <logger name="io.fd" level="INFO"/>

  <!-- Netty -->
  <logger name="io.netty" level="WARN"/>
</configuration>