-
Notifications
You must be signed in to change notification settings - Fork 2
/
lnav.json
42 lines (42 loc) · 1.06 KB
/
lnav.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
34
35
36
37
38
39
40
41
42
{
"electro_log": {
"title": "Electro Logs",
"description": "The Electro framework log format",
"url": "",
"regex": {
"std": {
"pattern": "^\\[(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?)] (?<channel>\\w+)\\.(?<level>[A-Z]+): (?<message>[^\\{]*?)(?<body>\\{.*})"
}
},
"level-field": "level",
"level": {
"error": "ERROR",
"debug": "DEBUG",
"info": "INFO",
"warning": "WARNING"
},
"value": {
"timestamp": {
"kind": "string",
"identifier": false
},
"channel": {
"kind": "string",
"identifier": true
},
"level": {
"kind": "string",
"identifier": true
},
"body": {
"kind": "json",
"identifier": false
}
},
"sample": [
{
"line": "[2019-07-17 09:50:04] general.DEBUG: Some message {\"client_id\":6,\"client_name\":\"Demo client\"} []"
}
]
}
}