Skip to content

larose/logback-json-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Logback JSON example

This project shows how to configure Logback to log in JSON.

Relevant code:

Output example:

logger.debug("Hello world.");
{
  "timestamp" : "2018-05-26T14:51:07.505Z",
  "level" : "DEBUG",
  "thread" : "main",
  "logger" : "com.mathieularose.Main",
  "message" : "Hello world.",
  "context" : "default"
}

About

Logback JSON example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages