Add lnav config and formats

bladee.bsky.social 941c08d6 5f037405

verified
Changed files
+45
dot_config
lnav
formats
installed
+45
dot_config/lnav/formats/installed/logcat_log.json
···
+
{
+
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
+
"logcat_log": {
+
"title": "Android logcat logs",
+
"regex": {
+
"threadtime": {
+
"pattern": "^(?<timestamp>\\d{2}-\\d{2}\\s\\d{2}:\\d{2}:\\d{2}\\.\\d{3})\\s+(?<log_pid>\\d+)\\s+(?<log_tid>\\d+)\\s+(?<level>[A-Z])\\s+(?<log_tag>\\S+)\\s*:\\s*(?<body>.*)$"
+
}
+
},
+
"timestamp-field": "timestamp",
+
"timestamp-format": [ "%m-%d %H:%M:%S.%L" ],
+
"ordered-by-time": false,
+
"level-field": "level",
+
"body-field": "body",
+
"opid-field": "tag",
+
"level": {
+
"fatal": "F",
+
"error": "E",
+
"warning": "W",
+
"info": "I",
+
"debug": "D",
+
"trace": "V"
+
},
+
"value": {
+
"log_pid": {
+
"kind": "integer",
+
"identifier": false
+
},
+
"log_tid": {
+
"kind": "integer",
+
"identifier": false
+
},
+
"log_tag": {
+
"kind": "string",
+
"identifier": true
+
}
+
},
+
"sample": [
+
{
+
"line": "07-06 11:25:07.996 1583 2720 E fpc_fingerprint_hal: do_key_monitor open failed with error -2",
+
"level": "error"
+
}
+
]
+
}
+
}