From f43c31fb9ae41ab03998480c7494eb156a4b66ae Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Fri, 27 Dec 2024 18:49:29 +0000 Subject: [PATCH] docs: Add lnav config --- .lnav.config.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .lnav.config.json diff --git a/.lnav.config.json b/.lnav.config.json new file mode 100644 index 00000000..fe82bcd7 --- /dev/null +++ b/.lnav.config.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://lnav.org/schemas/format-v1.schema.json", + "error_log": { + "title": "Multi-Scrobbler Log", + "description": "Logs from Multi Scrobbler", + "regex": { + "std": { + "pattern": "^\\[(?\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?)(?:.*?)\\] (?[A-Z]*) : (?.*)" + } + }, + "level-field": "level", + "level": { + "info": "^(?i)(?:info)$", + "debug": "^(?i)(?:debug)$", + "error": "^(?i)(error)$", + "warning": "^(?i)(warn)$", + "trace": "^(?i)verbose$", + "critical": "^(?i)(?:crit|Cr)$", + "fatal": "^(?i)(?:alert|fatal|panic|Al|Em)$" + }, + "sample": [ + { + "line": "[2024-12-26 01:58:48.261 -0500] DEBUG : [App] [Sources] [Jellyfin - unnamed] Last activity was at 01:58:48-05:00 | Next check in 10.00s | No new tracks discovered", + "level": "debug" + } + ] + } +} \ No newline at end of file