Skip to content

Commit

Permalink
Upgrade logback conf to new canonical format
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Sep 18, 2023
1 parent 5505af4 commit 0df9f25
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions test/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
-->

<!DOCTYPE configuration>

<configuration>
<import class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"/>
<import class="ch.qos.logback.core.ConsoleAppender"/>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%highlight(%-5level) %logger{15} - %message%n%xException</pattern>
</encoder>
</appender>
<appender name="STDOUT" class="ConsoleAppender">
<encoder class="PatternLayoutEncoder">
<pattern>%highlight(%-5level) %logger{15} - %message%n%xException</pattern>
</encoder>
</appender>

<root level="WARN">
<appender-ref ref="STDOUT" />
</root>
<root level="WARN">
<appender-ref ref="STDOUT"/>
</root>

</configuration>

0 comments on commit 0df9f25

Please sign in to comment.