mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-18 13:41:49 +03:00
a92b9abf34
* implementation work for json importers * json driver checkpoint * working on json.ParseObjectsInArray * json.ParseObjectsInArray seems to be working * checkpoint while tidying up ParseObjectsInArray * more tidy checkpoint * more tidy checkpoint 2 * tidying up ParseObjectsInArray * tidy up * code/docs cleanup * more cleanup of json driver * more cleanup of json driver * flat json import seemingly working * improvements to json driver * json writer now prints empty [] for postgres empty tables
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
|
|
}
|
|
}
|
|
}
|
|
} |