gging.log4j.log4j-layout-template-json.2.21.1.source-code.GelfLayout.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of log4j-layout-template-json
Show all versions of log4j-layout-template-json
Apache Log4j Layout for JSON template.
{
"version": "1.1",
"host": "${hostName}",
"short_message": {
"$resolver": "message",
"stringified": true
},
"full_message": {
"$resolver": "exception",
"field": "stackTrace",
"stackTrace": {
"stringified": true
}
},
"timestamp": {
"$resolver": "timestamp",
"epoch": {
"unit": "secs"
}
},
"level": {
"$resolver": "level",
"field": "severity",
"severity": {
"field": "code"
}
},
"_logger": {
"$resolver": "logger",
"field": "name"
},
"_thread": {
"$resolver": "thread",
"field": "name"
},
"_mdc": {
"$resolver": "mdc",
"flatten": {
"prefix": "_"
},
"stringified": true
}
}