Skip to content

Instantly share code, notes, and snippets.

@sethcall
Created January 11, 2013 18:43
Show Gist options
  • Save sethcall/4512952 to your computer and use it in GitHub Desktop.
Save sethcall/4512952 to your computer and use it in GitHub Desktop.
starter logback columnar log format
<configuration scan="true">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{MMMdd HH:mm:ss.SSS} %8.8thread %3.-3level %15.-15logger{0} %msg %X %n</pattern>
</encoder>
</appender>
<root level="DEBUG">
<appender-ref ref="STDOUT"/>
</root>
</configuration>
@sethcall
Copy link
Author

Example output:

Jan11 12:33:40.761     main INF  ServiceProgram Program started  
Jan11 12:33:41.000     main INF            Main Connected to broker: amqp://guest:guest@localhost:5672  
Jan11 12:33:41.004     main INF            Main Declared outbound queues 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment