-
Notifications
You must be signed in to change notification settings - Fork 8
/
logback.xml
50 lines (41 loc) · 1.77 KB
/
logback.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<configuration>
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
<resetJUL>true</resetJUL>
</contextListener>
<shutdownHook/>
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
<!-- encoders are by default assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%highlight(%-5level{5})] [%cyan(%-20.20thread{20})] [%cyan(%-29.29logger{29})] - %msg%n </pattern>
</encoder>
</appender>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>/var/lib/rnode-diag/current/rnode.log</file>
<append>false</append>
<encoder>
<pattern>%d{ISO8601, UTC} [%-5level{5}] [%-20.20thread{30}] [%-29.29logger{29}]- %msg%n </pattern>
</encoder>
</appender>
<appender name="LOGSTASH" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
<destination>logstash.rchain-dev.tk:4560</destination>
<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>DEBUG</level>
</filter>
</appender>
<logger name="coop.rchain.shared.EventLogger" level="OFF" />
<logger name="coop.rchain.rspace" level="warn" />
<logger name="org.http4s" level="warn" />
<logger name="io.netty" level="warn" />
<logger name="io.grpc" level="warn" />
<logger name="org.http4s.blaze.channel.nio1.NIO1SocketServerGroup" level="OFF" />
<root level="debug">
<appender-ref ref="STDOUT" />
<appender-ref ref="FILE" />
<appender-ref ref="LOGSTASH" />
</root>
</configuration>