Skip to content

Instantly share code, notes, and snippets.

@dev3loperb
Created November 17, 2016 07:55
Show Gist options
  • Save dev3loperb/fed7e9ab4cd960feae3d65f572e1b411 to your computer and use it in GitHub Desktop.
Save dev3loperb/fed7e9ab4cd960feae3d65f572e1b411 to your computer and use it in GitHub Desktop.
Colorful logback console logs
<?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