Last active
September 4, 2020 20:24
-
-
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).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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