mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-04-12 23:42:27 -04:00
update lnav config to support newer+older styles
This commit is contained in:
parent
6f2befec65
commit
3c057af896
@ -3,11 +3,14 @@
|
|||||||
"moonfire_log": {
|
"moonfire_log": {
|
||||||
"title": "Moonfire Log",
|
"title": "Moonfire Log",
|
||||||
"description": "The Moonfire NVR log format.",
|
"description": "The Moonfire NVR log format.",
|
||||||
"timestamp-format": ["%Y%m%d %H:%M:%S.%L"],
|
"timestamp-format": [
|
||||||
|
"%Y%m%d %H:%M:%S.%L",
|
||||||
|
"%m%d %H%M%S.%L"
|
||||||
|
],
|
||||||
"url": "https://github.com/scottlamb/mylog/blob/master/src/lib.rs",
|
"url": "https://github.com/scottlamb/mylog/blob/master/src/lib.rs",
|
||||||
"regex": {
|
"regex": {
|
||||||
"std": {
|
"std": {
|
||||||
"pattern": "^(?<level>[EWIDT])(?<timestamp>\\d{4} \\d{2}\\d{2}\\d{2}\\.\\d{3}) +(?<thread>[^ ]+) (?<module_path>[^ \\]]+)\\] (?<body>(?:.|\\n)*)"
|
"pattern": "^(?<level>[EWIDT])(?<timestamp>\\d{8} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}|\\d{4} \\d{6}\\.\\d{3}) +(?<thread>[^ ]+) (?<module_path>[^ \\]]+)\\] (?<body>(?:.|\\n)*)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"level-field": "level",
|
"level-field": "level",
|
||||||
@ -33,6 +36,9 @@
|
|||||||
{
|
{
|
||||||
"line": "I20210308 21:31:24.255 main moonfire_nvr] Success."
|
"line": "I20210308 21:31:24.255 main moonfire_nvr] Success."
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"line": "I0308 213124.255 main moonfire_nvr] Older style."
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"line": "W20210303 22:20:53.081 s-west_side-main moonfire_base::clock] getting next packet took PT8.153173367S!"
|
"line": "W20210303 22:20:53.081 s-west_side-main moonfire_base::clock] getting next packet took PT8.153173367S!"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user