forked from cloudflare/docker-opentsdb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlogback.xml
22 lines (21 loc) · 907 Bytes
/
logback.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="KUBE_CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="com.google.cloud.logging.GoogleCloudLoggingV2Layout">
<appendLineSeparator>true</appendLineSeparator>
<serviceName>opentsdb</serviceName>
<serviceVersion>{{SERVICE_VERSION}}</serviceVersion>
<jsonFormatter class="com.google.cloud.logging.GSONJsonFormatter"/>
</layout>
</encoder>
</appender>
<!-- Per class logger levels -->
<logger name="QueryLog" level="{{QUERY_LOG_LEVEL}}" additivity="false">
<appender-ref ref="KUBE_CONSOLE"/>
</logger>
<!-- Fallthrough root logger and router -->
<root level="{{ROOT_LOG_LEVEL}}">
<appender-ref ref="KUBE_CONSOLE" />
</root>
</configuration>