Created
November 17, 2016 07:55
-
-
Save dev3loperb/fed7e9ab4cd960feae3d65f572e1b411 to your computer and use it in GitHub Desktop.
Colorful logback console logs
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="console" class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder> | |
<pattern>%red(%d) [%thread] %highlight(%-5level) [%F:%L] %boldYellow(%logger{5}) - %magenta(%mdc{username}) %msg%n</pattern> | |
</encoder> | |
</appender> | |
<root level="INFO"> | |
<appender-ref ref="console" /> | |
</root> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment