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