Skip to content

Commit

Permalink
Simplify Logback config
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardBradley committed Jul 6, 2015
1 parent 5a63d8b commit 00fa0f2
Showing 1 changed file with 11 additions and 1 deletion.
@@ -1,5 +1,15 @@
<configuration>

<appender name="FILE2" class="ch.qos.logback.core.FileAppender">
<file>testFile.log</file>
<append>true</append>
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder
by default -->
Expand Down Expand Up @@ -35,7 +45,7 @@
</appender>

<root level="INFO">
<appender-ref ref="FILE" />
<appender-ref ref="FILE2" />
<!-- <appender-ref ref="STDOUT" /> -->
</root>
</configuration>

0 comments on commit 00fa0f2

Please sign in to comment.