-
-
Notifications
You must be signed in to change notification settings - Fork 326
/
Copy pathenv_logger_log.json
33 lines (33 loc) · 964 Bytes
/
env_logger_log.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
"env_logger_log": {
"title": "env_logger format",
"description": "Format file for Rust's env_logger crate",
"url": [
"https://docs.rs/env_logger/latest/env_logger/"
],
"regex": {
"std": {
"pattern": "^\\[(?<timestamp>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[^ ]+) (?<level>\\w+) (?<module>[^\\]]+)\\]\\s+(?<body>.*)"
}
},
"value": {
"level": {
"kind": "string"
},
"module": {
"kind": "string",
"identifier": true
},
"timestamp": {
"kind": "string"
}
},
"sample": [
{
"line": "[2017-11-09T02:12:24Z ERROR main] this is printed by default",
"level": "error"
}
]
}
}