mirror of
https://github.com/tstack/lnav.git
synced 2024-10-26 21:19:54 +03:00
Merge pull request #1136 from TobiX/bunyan
Add support for the bunyan JSON log format
This commit is contained in:
commit
57486af178
73
src/formats/bunyan_log.json
Normal file
73
src/formats/bunyan_log.json
Normal file
@ -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"
|
||||
}
|
||||
}
|
@ -3,6 +3,7 @@ FORMAT_FILES = \
|
||||
$(srcdir)/%reldir%/access_log.json \
|
||||
$(srcdir)/%reldir%/alb_log.json \
|
||||
$(srcdir)/%reldir%/block_log.json \
|
||||
$(srcdir)/%reldir%/bunyan_log.json \
|
||||
$(srcdir)/%reldir%/candlepin_log.json \
|
||||
$(srcdir)/%reldir%/choose_repo_log.json \
|
||||
$(srcdir)/%reldir%/cups_log.json \
|
||||
|
10
test/logfile_bunyan.0
Normal file
10
test/logfile_bunyan.0
Normal file
@ -0,0 +1,10 @@
|
||||
{"name":"renovate","hostname":"renovate-gitlab-67c4bcb5-9ggbv","pid":7,"level":20,"logContext":"qjifsaDDI","repository":"webgui/custom-icons-transformer","msg":"Found gitlabci-include package files","time":"2023-03-24T14:26:16.243Z","v":0}
|
||||
{"name":"renovate","hostname":"renovate-gitlab-67c4bcb5-9ggbv","pid":7,"level":20,"logContext":"qjifsaDDI","repository":"webgui/custom-icons-transformer","msg":"Found npm package files","time":"2023-03-24T14:26:16.243Z","v":0}
|
||||
{"name":"renovate","hostname":"renovate-gitlab-67c4bcb5-9ggbv","pid":7,"level":20,"logContext":"qjifsaDDI","repository":"webgui/custom-icons-transformer","msg":"Found 3 package file(s)","time":"2023-03-24T14:26:16.243Z","v":0}
|
||||
{"name":"renovate","hostname":"renovate-gitlab-67c4bcb5-9ggbv","pid":7,"level":30,"logContext":"qjifsaDDI","repository":"webgui/custom-icons-transformer","baseBranch":"main","stats":{"managers":{"gitlabci":{"fileCount":1,"depCount":1},"gitlabci-include":{"fileCount":1,"depCount":1},"npm":{"fileCount":1,"depCount":15}},"total":{"fileCount":3,"depCount":17}},"msg":"Dependency extraction complete","time":"2023-03-24T14:26:16.243Z","v":0}
|
||||
{"name":"renovate","hostname":"renovate-gitlab-67c4bcb5-9ggbv","pid":7,"level":20,"logContext":"qjifsaDDI","repository":"webgui/custom-icons-transformer","msg":"Dependency node has unsupported/unversioned value lts-bullseye-slim (versioning=docker)","time":"2023-03-24T14:26:16.390Z","v":0}
|
||||
{"name":"renovate","hostname":"renovate-gitlab-67c4bcb5-9ggbv","pid":7,"level":20,"logContext":"qjifsaDDI","repository":"webgui/custom-icons-transformer","depName":"prettier","check":"stabilityDays","msg":"Release 2.8.7 is pending status checks","time":"2023-03-24T14:26:17.493Z","v":0}
|
||||
{"name":"renovate","hostname":"renovate-gitlab-67c4bcb5-9ggbv","pid":7,"level":20,"logContext":"qjifsaDDI","repository":"webgui/custom-icons-transformer","depName":"rimraf","check":"stabilityDays","msg":"Release 4.4.1 is pending status checks","time":"2023-03-24T14:26:17.897Z","v":0}
|
||||
{"name":"renovate","hostname":"renovate-gitlab-67c4bcb5-9ggbv","pid":7,"level":20,"logContext":"qjifsaDDI","repository":"webgui/custom-icons-transformer","depName":"rimraf","bucket":"non-major","msg":"All releases are pending - using latest","time":"2023-03-24T14:26:17.897Z","v":0}
|
||||
{"name":"renovate","hostname":"renovate-gitlab-67c4bcb5-9ggbv","pid":7,"level":20,"logContext":"qjifsaDDI","repository":"webgui/custom-icons-transformer","depName":"prettier-plugin-svelte","check":"stabilityDays","msg":"Release 2.10.0 is pending status checks","time":"2023-03-24T14:26:18.330Z","v":0}
|
||||
{"name":"renovate","hostname":"renovate-gitlab-67c4bcb5-9ggbv","pid":7,"level":20,"logContext":"qjifsaDDI","repository":"webgui/custom-icons-transformer","depName":"prettier-plugin-svelte","bucket":"non-major","msg":"All releases are pending - using latest","time":"2023-03-24T14:26:18.331Z","v":0}
|
Loading…
Reference in New Issue
Block a user