-
Notifications
You must be signed in to change notification settings - Fork 201
/
Copy pathvdsmlog.lang
30 lines (28 loc) · 1.13 KB
/
vdsmlog.lang
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
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later
# VDSM log highlighter
state flow = '^' begin
mainprocess = "MainProcess"
mainthread = "MainThread(?=::)"
thread = '(Thread-\d+|[\w-]+)(?=::)'
state loglevel start '::' begin
error = 'ERROR|CRITICAL'
warning = 'WARN(?:ING)?'
info = 'INFO|DEBUG'
state date start '(?<=::)(\d+-\d+-\d+ \d+:\d+:\d+,\d+)(?=::)' begin
state filename start '\w+(?=::)' begin
state lineno start '\d+(?=::)' begin
state logger start '[\w.]+(?=::)' begin
state function start '\([^)]+\)(?= )' begin
cmdsuccess = 'SUCCESS: <err> = \'[^\']*\'; <rc> = \d+'
cmderror = 'FAILED: <err> = \'[^\']*\'; <rc> = \d+'
apierror = '\{\'message\': \'[^\']*\', \'code\': [1-9]\d*\}'
apisuccess = '\{\'message\': \'[^\']*\', \'code\': 0\}'
statechange = 'moving from state \w+ -> state \w+'
statechange = 'finished(?=:)'
notice = 'sampling method|[sS]uper [vV]dsm|Task|VDSM|Returning last result|[Rr]esources?'
(runandprotect,runandprotectmethod,runandprotect) = `(Run and protect: )(\w+)(, args:|, Return response:)`
end end end end end
end
eol = '$' exit
end