forked from vscode-kubernetes-tools/vscode-kubernetes-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
log-colors-rules.json
27 lines (26 loc) · 1.17 KB
/
log-colors-rules.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
[
{
"regex": "\"[^\"]*\"|(?<![\\w])'[^']*'|\\[(warning|warn|wrn|wn|w)\\]|(?<=^[\\s\\d\\p]*)\\bW\\b|\\b(WARNING|WARN|Warn|WW)\\b",
"color": "ol"
},
{
"regex": "\\b(HINT|INFO|INFORMATION|Info|NOTICE|II)\\b|\\[(information|info|inf|in|i)\\]|(?<=^[\\s\\d\\p]*)\\bI\\b",
"color": "gl"
},
{
"regex": "\\b(Trace)\\b:|\\[(verbose|verb|vrb|vb|v)\\]|(?<=^[\\s\\d\\p]*)\\bV\\b|\\b\\d{4}-\\d{2}-\\d{2}(T|\\b)|(?<=(^|\\s))\\d{2}[^\\w\\s]\\d{2}[^\\w\\s]\\d{4}\\b|\\d{1,2}:\\d{2}(:\\d{2}([.,]\\d{1,})?)?(Z| ?[+-]\\d{1,2}:\\d{2})?\\b",
"color": "g"
},
{
"regex": "\\b(DEBUG|Debug)\\b|\\[(debug|dbug|dbg|de|d)\\]|(?<=^[\\s\\d\\p]*)\\bD\\b|\\b([0-9a-fA-F]{40}|[0-9a-fA-F]{10}|[0-9a-fA-F]{7})\\b|\\b[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}\\b|\\b([0-9]+|true|false|null)\\b|\\b[a-z]+://\\S+\\b/?",
"color": "b"
},
{
"regex": "\\[(error|eror|err|er|e|fatal|fatl|ftl|fa|f)\\]|(?<=^[\\s\\d\\p]*)\\bE\\b|\\b(ALERT|CRITICAL|EMERGENCY|ERROR|FAILURE|FAIL|Fatal|FATAL|Error|EE)\\b",
"color": "r"
},
{
"regex": "\\b([a-zA-Z.]*Exception)\\b",
"color": "o"
}
]