Logback JSON example
Switch branches/tags
Nothing to show
Clone or download
Latest commit 2b52170 May 26, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main Initial commit May 26, 2018
.gitignore Initial commit May 26, 2018
README.md Initial commit May 26, 2018
pom.xml Initial commit May 26, 2018

README.md

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"
}