Merge "Make Thresh logging compatable with Storm 1.1.1"

This commit is contained in:
Zuul 2018-04-10 15:28:04 +00:00 committed by Gerrit Code Review
commit 5f76cf1668
2 changed files with 26 additions and 26 deletions

View File

@ -0,0 +1,26 @@
<configuration monitorInterval="60" shutdownHook="disable">
<properties>
<property name="pattern">%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</property>
</properties>
<appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout>
<pattern>${pattern}</pattern>
</PatternLayout>
</Console>
<File name="FILE" fileName="${LOGDIR:-/tmp}/monasca-thresh.log">
<PatternLayout>
<pattern>${pattern}</pattern>
</PatternLayout>
</File>
</appenders>
<loggers>
<root level="info">
<appender-ref ref="console"/>
<appender-ref ref="FILE"/>
</root>
</loggers>
</configuration>

View File

@ -1,26 +0,0 @@
<configuration scan="true" scanPeriod="30 seconds">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>${LOGDIR:-/tmp}/monasca-thresh.log</file>
<encoder>
<pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>
</encoder>
</appender>
<logger name="monasca" level = "info"/>
<root level="info">
<appender-ref ref="STDOUT" />
<appender-ref ref="FILE" />
</root>
</configuration>