mirror of https://github.com/tstack/lnav
parent
33a80db95c
commit
d675a8d10e
@ -0,0 +1,73 @@
|
||||
{
|
||||
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
|
||||
"bunyan": {
|
||||
"title": "Bunyan log",
|
||||
"url": "https://github.com/trentm/node-bunyan",
|
||||
"description": "Bunyan JSON logging library for node.js",
|
||||
"json": true,
|
||||
"line-format": [
|
||||
{
|
||||
"field": "time"
|
||||
},
|
||||
" ",
|
||||
{
|
||||
"field": "name"
|
||||
},
|
||||
"[",
|
||||
{
|
||||
"field": "pid"
|
||||
},
|
||||
"] ",
|
||||
{
|
||||
"field": "__level__",
|
||||
"text-transform": "uppercase"
|
||||
},
|
||||
" ",
|
||||
{
|
||||
"field": "msg"
|
||||
}
|
||||
],
|
||||
"level-field": "level",
|
||||
"level": {
|
||||
"fatal": "60",
|
||||
"error": "50",
|
||||
"warning": "40",
|
||||
"info": "30",
|
||||
"debug": "20",
|
||||
"trace": "10"
|
||||
},
|
||||
"value": {
|
||||
"pid": {
|
||||
"kind": "integer",
|
||||
"identifier": true
|
||||
},
|
||||
"name": {
|
||||
"kind": "string",
|
||||
"identifier": true
|
||||
},
|
||||
"hostname": {
|
||||
"kind": "string",
|
||||
"identifier": true,
|
||||
"hidden": true
|
||||
},
|
||||
"time": {
|
||||
"kind": "string",
|
||||
"identifier": false
|
||||
},
|
||||
"level": {
|
||||
"kind": "integer",
|
||||
"identifier": true,
|
||||
"foreign-key": true
|
||||
},
|
||||
"v": {
|
||||
"kind": "integer",
|
||||
"hidden": true
|
||||
},
|
||||
"msg": {
|
||||
"kind": "string"
|
||||
}
|
||||
},
|
||||
"timestamp-field": "time",
|
||||
"body-field": "msg"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue