mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-25 17:25:36 +03:00
65 lines
1.2 KiB
JSON
65 lines
1.2 KiB
JSON
{
|
|
"sq_log": {
|
|
"title": "sq",
|
|
"url": "https://sq,io",
|
|
"description": "Log format for sq",
|
|
"json": true,
|
|
"hide-extra": false,
|
|
"file-pattern": "sq.log",
|
|
"multiline": true,
|
|
"line-format": [
|
|
{
|
|
"field": "__timestamp__",
|
|
"timestamp-format": "%H:%M:%S.%L"
|
|
},
|
|
"\t",
|
|
{
|
|
"field": "level",
|
|
"text-transform": "uppercase"
|
|
},
|
|
"\t",
|
|
{
|
|
"field": "caller",
|
|
"max-width": 72,
|
|
"min-width": 72,
|
|
"overflow": "dot-dot"
|
|
},
|
|
" ",
|
|
{
|
|
"field": "msg"
|
|
}
|
|
],
|
|
"level-field": "level",
|
|
"level": {
|
|
"error": "error",
|
|
"debug": "debug",
|
|
"warning": "warn"
|
|
},
|
|
"highlights": {
|
|
"caller": {
|
|
"pattern": "caller",
|
|
"underline": true
|
|
}
|
|
},
|
|
"timestamp-field": "time",
|
|
"body-field": "msg",
|
|
"value": {
|
|
"time": {
|
|
"kind": "string",
|
|
"identifier": true
|
|
},
|
|
"level": {
|
|
"kind": "string",
|
|
"identifier": true
|
|
},
|
|
"caller": {
|
|
"kind": "string",
|
|
"identifier": true
|
|
},
|
|
"msg": {
|
|
"kind": "quoted",
|
|
"identifier": false
|
|
}
|
|
}
|
|
}
|
|
} |