Merge "Make Thresh logging compatable with Storm 1.1.1"
This commit is contained in:
commit
5f76cf1668
26
thresh/src/main/resources/log4j2.xml
Normal file
26
thresh/src/main/resources/log4j2.xml
Normal 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>
|
@ -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>
|
Loading…
x
Reference in New Issue
Block a user