forked from sergei-dyshel/glogg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
misc.glogg-syntax.yaml
57 lines (53 loc) · 2.16 KB
/
misc.glogg-syntax.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
glogg:
rules:
- match: '^- \d+:\d+:\d+\.\d+ (?<level>[A-Z]+) (?<filename>.+):(?<linenum>\d+): \[(?<function>.*?)\].*'
tests:
'- 21:06:22.563 INFO struct_config.cpp:49: [StructConfig::StructConfig] Loaded color scheme file "/home/sergei/src/glogg-devel/config/solarized.glogg-colors.yaml"':
- [INFO, level]
- [struct_config.cpp, filename]
- ['49', linenum]
- [StructConfig::StructConfig, function]
python_traceback:
rules:
- match: 'File "(?<filename>.+?)", line (?<linenum>\d+), in (?<function>[\w<>]+)'
tests:
' File "spam.py", line 3, in <module>':
- [spam.py, filename]
- ['3', linenum]
- [<module>, function]
strace:
rules:
- match: '^(?:(?<timestamp>\d{2}:\d{2}:\d{2}(?:\.\d{6})?) )?(?<syscall>\w+)\((?<body>.*)\)\s+=\s+(?<rc>[-\w]+)(?: (?<errno>\w+) \([^\)]+\))?(?: <(?<duration>\d+\.\d+)>)?$'
colorize:
syscall: function
errno: error
tests:
'22:58:12.021512 access("/etc/system-fips", F_OK) = -1 ENOENT (No such file or directory) <0.000021>':
- ['22:58:12.021512', timestamp]
- [access, function]
- ['"/etc/system-fips", F_OK', body]
- ['-1', rc]
- [ENOENT, error]
- ['0.000021', duration]
gdb_backtrace:
rules:
- match: '^(?:#\d+ +(?<addr>[x0-9a-f]+) in (?<function>[\w:]+) \(.*?)?.*?(?: at (?<filename>[\w.-]+):(?<linenum>\d+)| from (?<filename1>[\w.\/-]+))?$'
colorize:
addr: timestamp
filename1: filename
tests:
'#17 0x0075f342 in IA__g_main_context_dispatch (context=0x890d248) at gmain.c:2045':
- ['0x0075f342', timestamp]
- [IA__g_main_context_dispatch, function]
- [gmain.c, filename]
- ['2045', linenum]
journald:
rules:
- match: '^(?<timestamp>\w+ \d+ \d+:\d+:\d+) (?<hostname>[\w.-]+) (?<process>[\w.-]+)\[(?<pid>\d+)\]: (?<message>.*)'
tests:
'May 08 09:01:18 sergei-laptop NetworkManager[984]: <info> [1557295278.1490] dhcp4 (eno1): address 172.16.12.144':
- ['May 08 09:01:18', timestamp]
- [sergei-laptop, hostname]
- [NetworkManager, process]
- ['984', pid]
- ['<info> [1557295278.1490] dhcp4 (eno1): address 172.16.12.144', message]