Skip to content

Instantly share code, notes, and snippets.

@tomsquest
Last active September 4, 2020 20:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tomsquest/8024187 to your computer and use it in GitHub Desktop.
Save tomsquest/8024187 to your computer and use it in GitHub Desktop.
logback-test.xml that suits well for testing.Includes the method and line of the call (not suitable for production).
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%date %highlight(%-5level) [%thread] %highlight(%class.%method:%line) - %msg%n</pattern>
</encoder>
</appender>
<!--
<logger name="com.mycompany">
<level value="DEBUG" />
</logger>
-->
<root level="warn">
<appender-ref ref="STDOUT"/>
</root>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment