417de9f837
- structured, asynchronous logging - supports discreet log levels, including custom levels - supports output to console, files, and all common log aggregators. - supports JSON, plain text and GELF formats - lazy formatting and writing
45 lines
1.3 KiB
JSON
45 lines
1.3 KiB
JSON
{
|
|
"console": {
|
|
"type": "console",
|
|
"options": {
|
|
"out": "stdout"
|
|
},
|
|
"format": "plain",
|
|
"format_options": {
|
|
"min_level_len": 5,
|
|
"min_msg_len": 40,
|
|
"enable_color": true
|
|
},
|
|
"levels": [
|
|
{"id": 5, "name": "debug"},
|
|
{"id": 4, "name": "info", "color": 36},
|
|
{"id": 3, "name": "warn"},
|
|
{"id": 2, "name": "error", "color": 31},
|
|
{"id": 1, "name": "fatal", "stacktrace": true},
|
|
{"id": 0, "name": "panic", "stacktrace": true},
|
|
{"id": 500, "name": "telemetry", "color":34}
|
|
],
|
|
"maxqueuesize": 1000
|
|
},
|
|
"file": {
|
|
"type": "file",
|
|
"options": {
|
|
"filename": "focalboard-server.log",
|
|
"max_size": 1000000,
|
|
"max_age": 1,
|
|
"max_backups": 10,
|
|
"compress": true
|
|
},
|
|
"format": "json",
|
|
"levels": [
|
|
{"id": 5, "name": "debug"},
|
|
{"id": 4, "name": "info"},
|
|
{"id": 3, "name": "warn"},
|
|
{"id": 2, "name": "error"},
|
|
{"id": 1, "name": "fatal", "stacktrace": true},
|
|
{"id": 0, "name": "panic", "stacktrace": true},
|
|
{"id": 500, "name": "telemetry"}
|
|
],
|
|
"maxqueuesize": 1000
|
|
}
|
|
}
|