Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2bc6475

Browse files
authoredMar 21, 2021
Added support for Generic log files (#2796)
1 parent 1a2347a commit 2bc6475

28 files changed

+4071
-2
lines changed
 

‎components.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎components.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,10 @@
733733
"title": "LLVM IR",
734734
"owner": "porglezomp"
735735
},
736+
"log": {
737+
"title": "Log file",
738+
"owner": "RunDevelopment"
739+
},
736740
"lolcode": {
737741
"title": "LOLCODE",
738742
"owner": "Golmote"

‎components/prism-log.js

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
// This is a language definition for generic log files.
2+
// Since there is no one log format, this language definition has to support all formats to some degree.
3+
//
4+
// Based on https://github.com/MTDL9/vim-log-highlighting
5+
6+
Prism.languages.log = {
7+
'string': {
8+
// Single-quoted strings must not be confused with plain text. E.g. Can't isn't Susan's Chris' toy
9+
pattern: /"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,
10+
greedy: true,
11+
},
12+
13+
'level': [
14+
{
15+
pattern: /\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,
16+
alias: ['error', 'important']
17+
},
18+
{
19+
pattern: /\b(?:WARN|WARNING)\b/,
20+
alias: ['warning', 'important']
21+
},
22+
{
23+
pattern: /\b(?:DISPLAY|INFO|NOTICE|STATUS)\b/,
24+
alias: ['info', 'keyword']
25+
},
26+
{
27+
pattern: /\b(?:DEBUG|FINE)\b/,
28+
alias: ['debug', 'keyword']
29+
},
30+
{
31+
pattern: /\b(?:FINER|FINEST|TRACE|VERBOSE)\b/,
32+
alias: ['trace', 'comment']
33+
}
34+
],
35+
36+
'property': {
37+
pattern: /((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,
38+
lookbehind: true
39+
},
40+
41+
'separator': {
42+
pattern: /(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,
43+
lookbehind: true,
44+
alias: 'comment'
45+
},
46+
47+
'url': /\b(?:https?|ftp|file):\/\/[^\s|,;'"]*[^\s|,;'">.]/,
48+
'email': {
49+
pattern: /(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,
50+
lookbehind: true,
51+
alias: 'url'
52+
},
53+
54+
'ip-address': {
55+
pattern: /\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/i,
56+
alias: 'constant'
57+
},
58+
'mac-address': {
59+
pattern: /\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,
60+
alias: 'constant'
61+
},
62+
'domain': {
63+
pattern: /(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,
64+
lookbehind: true,
65+
alias: 'constant'
66+
},
67+
68+
'uuid': {
69+
pattern: /\b\w{8}-\w{4}-\w{4}-\w{4}-\w{12}\b/,
70+
alias: 'constant'
71+
},
72+
'hash': {
73+
pattern: /\b(?:[a-f0-9]{32}){1,2}\b/i,
74+
alias: 'constant'
75+
},
76+
77+
'file-path': {
78+
pattern: /\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,
79+
lookbehind: true,
80+
greedy: true,
81+
alias: 'string'
82+
},
83+
84+
'date': {
85+
pattern: RegExp(
86+
/\b\d{4}[-/]\d{2}[-/]\d{2}T(?=\d{1,2}:)/.source +
87+
'|' +
88+
/\b\d{1,4}[-/ ](?:\d{1,2}|Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[-/ ]\d{2,4}T?\b/.source +
89+
'|' +
90+
/\b(?:(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:\s{1,2}(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec))?|Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s{1,2}\d{1,2}\b/.source,
91+
'i'
92+
),
93+
alias: 'number'
94+
},
95+
'time': {
96+
pattern: /\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2,4}|Z)?\b/,
97+
alias: 'number'
98+
},
99+
100+
'boolean': /\b(?:true|false|null)\b/i,
101+
'number': {
102+
pattern: /(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,
103+
lookbehind: true
104+
},
105+
106+
'operator': /[;:?<=>~/@!$%&+\-|^(){}*#]/,
107+
'punctuation': /[\[\].,]/
108+
};

‎components/prism-log.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎examples/prism-log.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<h2>Nginx example</h2>
2+
<pre><code>/47.29.201.179 - - [28/Feb/2019:13:17:10 +0000] "GET /?p=1 HTTP/2.0" 200 5316 "https://domain1.com/?p=1" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "2.75"</code></pre>
3+
<pre><code>Mar 19 22:10:18 xxxxxx journal: xxxxxxx.mylabserver.com nginx: photos.example.com 127.0.0.1 - - [19/Mar/2018:22:10:18 +0000] "GET / HTTP/1.1" 200 1863 "-" "curl/7.29.0" "-"
4+
Mar 19 22:10:24 xxxxxxx journal: xxxxxxxx.mylabserver.com nginx: photos.example.com 127.0.0.1 - - [19/Mar/2018:22:10:24 +0000] "GET / HTTP/1.1" 200 53324 "-" "curl/7.29.0" "-"</code></pre>
5+
<pre><code>TLSv1.2 AES128-SHA 1.1.1.1 "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
6+
TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 2.2.2.2 "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
7+
TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 3.3.3.3 "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:58.0) Gecko/20100101 Firefox/58.0"
8+
TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 4.4.4.4 "Mozilla/5.0 (Android 4.4.2; Tablet; rv:65.0) Gecko/65.0 Firefox/65.0"
9+
TLSv1 AES128-SHA 5.5.5.5 "Mozilla/5.0 (Android 4.4.2; Tablet; rv:65.0) Gecko/65.0 Firefox/65.0"
10+
TLSv1.2 ECDHE-RSA-CHACHA20-POLY1305 6.6.6.6 "Mozilla/5.0 (Linux; U; Android 5.0.2; en-US; XT1068 Build/LXB22.46-28) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.10.2.1164 Mobile Safari/537.36"</code></pre>

‎plugins/show-language/prism-show-language.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
"elisp": "Lisp",
127127
"emacs-lisp": "Lisp",
128128
"llvm": "LLVM IR",
129+
"log": "Log file",
129130
"lolcode": "LOLCODE",
130131
"md": "Markdown",
131132
"markup-templating": "Markup templating",

‎plugins/show-language/prism-show-language.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎tests/languages/log/_discord.test

Lines changed: 420 additions & 0 deletions
Large diffs are not rendered by default.

‎tests/languages/log/_docker.test

Lines changed: 335 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,335 @@
1+
2021-01-12T13:38:16Z containerd time="2021-01-12T13:38:16.314696100Z" level=info msg="starting containerd" revision=269548fa27e0089a8b8278fc4fc781d7f65a939b version=v1.4.3
2+
2021-01-12T13:38:16Z containerd time="2021-01-12T13:38:16.314743500Z" level=debug msg="changing OOM score to -500"
3+
2021-01-12T13:38:16Z containerd time="2021-01-12T13:38:16.336716900Z" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1
4+
2021-01-12T13:38:16Z containerd time="2021-01-12T13:38:16.336891100Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1
5+
2021-01-12T13:38:16Z containerd time="2021-01-12T13:38:16.338482500Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.aufs\"..." error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: can't change directory to '4.19.128-microsoft-standard': No such file or directory\\n\"): skip plugin" type=io.containerd.snapshotter.v1
6+
2021-01-12T13:38:16Z containerd time="2021-01-12T13:38:16.338523700Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." type=io.containerd.snapshotter.v1
7+
2021-01-12T13:38:16Z containerd time="2021-01-12T13:38:16.338835400Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." error="path /var/lib/desktop-containerd/daemon/io.containerd.snapshotter.v1.btrfs (ext4) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
8+
9+
2021-03-05T17:58:29Z kmsg (977696) - 2021-03-05T17:58:28.2836488Z: init: (141) ERROR: StartHostListener:356: write failed 32
10+
2021-03-05T17:58:30Z kmsg (977697) - 2021-03-05T17:58:29.2863708Z: init: (141) ERROR: StartHostListener:356: write failed 32
11+
2021-03-05T17:58:31Z kmsg (977698) - 2021-03-05T17:58:30.2888998Z: init: (141) ERROR: StartHostListener:356: write failed 32
12+
2021-03-05T17:58:32Z kmsg (977699) - 2021-03-05T17:58:31.2917718Z: init: (141) ERROR: StartHostListener:356: write failed 32
13+
2021-03-05T17:58:33Z kmsg (977700) - 2021-03-05T17:58:32.2944488Z: init: (141) ERROR: StartHostListener:356: write failed 32
14+
2021-03-05T17:58:34Z kmsg (977701) - 2021-03-05T17:58:33.2979438Z: init: (141) ERROR: StartHostListener:356: write failed 32
15+
16+
time="2021-01-12T14:38:11+01:00" level=info msg="🍀 socket server listening : \\\\.\\pipe\\dockerGuiToDriver"
17+
time="2021-01-12T14:38:13+01:00" level=info msg="NewSharer: WSL2 engine is enabled so no file sharer is required."
18+
time="2021-01-12T14:38:13+01:00" level=info msg=waitForDockerUp
19+
time="2021-01-12T14:38:13+01:00" level=info msg="🍀 socket server starting : \\\\.\\pipe\\dockerGuiToDriver"
20+
21+
----------------------------------------------------
22+
23+
[
24+
["date", "2021-01-12T"],
25+
["time", "13:38:16Z"],
26+
" containerd time",
27+
["operator", "="],
28+
["string", "\"2021-01-12T13:38:16.314696100Z\""],
29+
" level",
30+
["operator", "="],
31+
"info msg",
32+
["operator", "="],
33+
["string", "\"starting containerd\""],
34+
" revision",
35+
["operator", "="],
36+
["number", "269548fa27e0089a8b8278fc4fc781d7f65a939b"],
37+
" version",
38+
["operator", "="],
39+
["number", "v1.4.3"],
40+
41+
["date", "2021-01-12T"],
42+
["time", "13:38:16Z"],
43+
" containerd time",
44+
["operator", "="],
45+
["string", "\"2021-01-12T13:38:16.314743500Z\""],
46+
" level",
47+
["operator", "="],
48+
"debug msg",
49+
["operator", "="],
50+
["string", "\"changing OOM score to -500\""],
51+
52+
["date", "2021-01-12T"],
53+
["time", "13:38:16Z"],
54+
" containerd time",
55+
["operator", "="],
56+
["string", "\"2021-01-12T13:38:16.336716900Z\""],
57+
" level",
58+
["operator", "="],
59+
"info msg",
60+
["operator", "="],
61+
["string", "\"loading plugin \\\"io.containerd.content.v1.content\\\"...\""],
62+
" type",
63+
["operator", "="],
64+
"io",
65+
["punctuation", "."],
66+
"containerd",
67+
["punctuation", "."],
68+
"content",
69+
["punctuation", "."],
70+
"v1\r\n",
71+
72+
["date", "2021-01-12T"],
73+
["time", "13:38:16Z"],
74+
" containerd time",
75+
["operator", "="],
76+
["string", "\"2021-01-12T13:38:16.336891100Z\""],
77+
" level",
78+
["operator", "="],
79+
"info msg",
80+
["operator", "="],
81+
["string", "\"loading plugin \\\"io.containerd.snapshotter.v1.aufs\\\"...\""],
82+
" type",
83+
["operator", "="],
84+
"io",
85+
["punctuation", "."],
86+
"containerd",
87+
["punctuation", "."],
88+
"snapshotter",
89+
["punctuation", "."],
90+
"v1\r\n",
91+
92+
["date", "2021-01-12T"],
93+
["time", "13:38:16Z"],
94+
" containerd time",
95+
["operator", "="],
96+
["string", "\"2021-01-12T13:38:16.338482500Z\""],
97+
" level",
98+
["operator", "="],
99+
"info msg",
100+
["operator", "="],
101+
["string", "\"skip loading plugin \\\"io.containerd.snapshotter.v1.aufs\\\"...\""],
102+
" error",
103+
["operator", "="],
104+
["string", "\"aufs is not supported (modprobe aufs failed: exit status 1 \\\"modprobe: can't change directory to '4.19.128-microsoft-standard': No such file or directory\\\\n\\\"): skip plugin\""],
105+
" type",
106+
["operator", "="],
107+
"io",
108+
["punctuation", "."],
109+
"containerd",
110+
["punctuation", "."],
111+
"snapshotter",
112+
["punctuation", "."],
113+
"v1\r\n",
114+
115+
["date", "2021-01-12T"],
116+
["time", "13:38:16Z"],
117+
" containerd time",
118+
["operator", "="],
119+
["string", "\"2021-01-12T13:38:16.338523700Z\""],
120+
" level",
121+
["operator", "="],
122+
"info msg",
123+
["operator", "="],
124+
["string", "\"loading plugin \\\"io.containerd.snapshotter.v1.btrfs\\\"...\""],
125+
" type",
126+
["operator", "="],
127+
"io",
128+
["punctuation", "."],
129+
"containerd",
130+
["punctuation", "."],
131+
"snapshotter",
132+
["punctuation", "."],
133+
"v1\r\n",
134+
135+
["date", "2021-01-12T"],
136+
["time", "13:38:16Z"],
137+
" containerd time",
138+
["operator", "="],
139+
["string", "\"2021-01-12T13:38:16.338835400Z\""],
140+
" level",
141+
["operator", "="],
142+
"info msg",
143+
["operator", "="],
144+
["string", "\"skip loading plugin \\\"io.containerd.snapshotter.v1.btrfs\\\"...\""],
145+
" error",
146+
["operator", "="],
147+
["string", "\"path /var/lib/desktop-containerd/daemon/io.containerd.snapshotter.v1.btrfs (ext4) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin\""],
148+
" type",
149+
["operator", "="],
150+
"io",
151+
["punctuation", "."],
152+
"containerd",
153+
["punctuation", "."],
154+
"snapshotter",
155+
["punctuation", "."],
156+
"v1\r\n\r\n",
157+
158+
["date", "2021-03-05T"],
159+
["time", "17:58:29Z"],
160+
" kmsg ",
161+
["operator", "("],
162+
["number", "977696"],
163+
["operator", ")"],
164+
["operator", "-"],
165+
["date", "2021-03-05T"],
166+
["time", "17:58:28.2836488Z"],
167+
["operator", ":"],
168+
" init",
169+
["operator", ":"],
170+
["operator", "("],
171+
["number", "141"],
172+
["operator", ")"],
173+
["level", "ERROR"],
174+
["operator", ":"],
175+
" StartHostListener",
176+
["operator", ":"],
177+
["number", "356"],
178+
["operator", ":"],
179+
" write failed ",
180+
["number", "32"],
181+
182+
["date", "2021-03-05T"],
183+
["time", "17:58:30Z"],
184+
" kmsg ",
185+
["operator", "("],
186+
["number", "977697"],
187+
["operator", ")"],
188+
["operator", "-"],
189+
["date", "2021-03-05T"],
190+
["time", "17:58:29.2863708Z"],
191+
["operator", ":"],
192+
" init",
193+
["operator", ":"],
194+
["operator", "("],
195+
["number", "141"],
196+
["operator", ")"],
197+
["level", "ERROR"],
198+
["operator", ":"],
199+
" StartHostListener",
200+
["operator", ":"],
201+
["number", "356"],
202+
["operator", ":"],
203+
" write failed ",
204+
["number", "32"],
205+
206+
["date", "2021-03-05T"],
207+
["time", "17:58:31Z"],
208+
" kmsg ",
209+
["operator", "("],
210+
["number", "977698"],
211+
["operator", ")"],
212+
["operator", "-"],
213+
["date", "2021-03-05T"],
214+
["time", "17:58:30.2888998Z"],
215+
["operator", ":"],
216+
" init",
217+
["operator", ":"],
218+
["operator", "("],
219+
["number", "141"],
220+
["operator", ")"],
221+
["level", "ERROR"],
222+
["operator", ":"],
223+
" StartHostListener",
224+
["operator", ":"],
225+
["number", "356"],
226+
["operator", ":"],
227+
" write failed ",
228+
["number", "32"],
229+
230+
["date", "2021-03-05T"],
231+
["time", "17:58:32Z"],
232+
" kmsg ",
233+
["operator", "("],
234+
["number", "977699"],
235+
["operator", ")"],
236+
["operator", "-"],
237+
["date", "2021-03-05T"],
238+
["time", "17:58:31.2917718Z"],
239+
["operator", ":"],
240+
" init",
241+
["operator", ":"],
242+
["operator", "("],
243+
["number", "141"],
244+
["operator", ")"],
245+
["level", "ERROR"],
246+
["operator", ":"],
247+
" StartHostListener",
248+
["operator", ":"],
249+
["number", "356"],
250+
["operator", ":"],
251+
" write failed ",
252+
["number", "32"],
253+
254+
["date", "2021-03-05T"],
255+
["time", "17:58:33Z"],
256+
" kmsg ",
257+
["operator", "("],
258+
["number", "977700"],
259+
["operator", ")"],
260+
["operator", "-"],
261+
["date", "2021-03-05T"],
262+
["time", "17:58:32.2944488Z"],
263+
["operator", ":"],
264+
" init",
265+
["operator", ":"],
266+
["operator", "("],
267+
["number", "141"],
268+
["operator", ")"],
269+
["level", "ERROR"],
270+
["operator", ":"],
271+
" StartHostListener",
272+
["operator", ":"],
273+
["number", "356"],
274+
["operator", ":"],
275+
" write failed ",
276+
["number", "32"],
277+
278+
["date", "2021-03-05T"],
279+
["time", "17:58:34Z"],
280+
" kmsg ",
281+
["operator", "("],
282+
["number", "977701"],
283+
["operator", ")"],
284+
["operator", "-"],
285+
["date", "2021-03-05T"],
286+
["time", "17:58:33.2979438Z"],
287+
["operator", ":"],
288+
" init",
289+
["operator", ":"],
290+
["operator", "("],
291+
["number", "141"],
292+
["operator", ")"],
293+
["level", "ERROR"],
294+
["operator", ":"],
295+
" StartHostListener",
296+
["operator", ":"],
297+
["number", "356"],
298+
["operator", ":"],
299+
" write failed ",
300+
["number", "32"],
301+
302+
"\r\n\r\ntime",
303+
["operator", "="],
304+
["string", "\"2021-01-12T14:38:11+01:00\""],
305+
" level",
306+
["operator", "="],
307+
"info msg",
308+
["operator", "="],
309+
["string", "\"🍀 socket server listening : \\\\\\\\.\\\\pipe\\\\dockerGuiToDriver\""],
310+
311+
"\r\ntime",
312+
["operator", "="],
313+
["string", "\"2021-01-12T14:38:13+01:00\""],
314+
" level",
315+
["operator", "="],
316+
"info msg",
317+
["operator", "="],
318+
["string", "\"NewSharer: WSL2 engine is enabled so no file sharer is required.\""],
319+
320+
"\r\ntime",
321+
["operator", "="],
322+
["string", "\"2021-01-12T14:38:13+01:00\""],
323+
" level",
324+
["operator", "="],
325+
"info msg",
326+
["operator", "="],
327+
"waitForDockerUp\r\ntime",
328+
["operator", "="],
329+
["string", "\"2021-01-12T14:38:13+01:00\""],
330+
" level",
331+
["operator", "="],
332+
"info msg",
333+
["operator", "="],
334+
["string", "\"🍀 socket server starting : \\\\\\\\.\\\\pipe\\\\dockerGuiToDriver\""]
335+
]

‎tests/languages/log/_java_stack_trace.test

Lines changed: 762 additions & 0 deletions
Large diffs are not rendered by default.

‎tests/languages/log/_minecraft.test

Lines changed: 419 additions & 0 deletions
Large diffs are not rendered by default.

‎tests/languages/log/_nginx.test

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
47.29.201.179 - - [28/Feb/2019:13:17:10 +0000] "GET /?p=1 HTTP/2.0" 200 5316 "https://domain1.com/?p=1" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "2.75"
2+
3+
Mar 19 22:10:18 xxxxxx journal: xxxxxxx.mylabserver.com nginx: photos.example.com 127.0.0.1 - - [19/Mar/2018:22:10:18 +0000] "GET / HTTP/1.1" 200 1863 "-" "curl/7.29.0" "-"
4+
Mar 19 22:10:24 xxxxxxx journal: xxxxxxxx.mylabserver.com nginx: photos.example.com 127.0.0.1 - - [19/Mar/2018:22:10:24 +0000] "GET / HTTP/1.1" 200 53324 "-" "curl/7.29.0" "-"
5+
6+
TLSv1.2 AES128-SHA 1.1.1.1 "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
7+
TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 2.2.2.2 "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
8+
TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 3.3.3.3 "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:58.0) Gecko/20100101 Firefox/58.0"
9+
TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 4.4.4.4 "Mozilla/5.0 (Android 4.4.2; Tablet; rv:65.0) Gecko/65.0 Firefox/65.0"
10+
TLSv1 AES128-SHA 5.5.5.5 "Mozilla/5.0 (Android 4.4.2; Tablet; rv:65.0) Gecko/65.0 Firefox/65.0"
11+
TLSv1.2 ECDHE-RSA-CHACHA20-POLY1305 6.6.6.6 "Mozilla/5.0 (Linux; U; Android 5.0.2; en-US; XT1068 Build/LXB22.46-28) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.10.2.1164 Mobile Safari/537.36"
12+
13+
----------------------------------------------------
14+
15+
[
16+
["ip-address", "47.29.201.179"],
17+
["separator", "- - "],
18+
["punctuation", "["],
19+
["date", "28/Feb/2019"],
20+
["operator", ":"],
21+
["time", "13:17:10 +0000"],
22+
["punctuation", "]"],
23+
["string", "\"GET /?p=1 HTTP/2.0\""],
24+
["number", "200"],
25+
["number", "5316"],
26+
["string", "\"https://domain1.com/?p=1\""],
27+
["string", "\"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36\""],
28+
["string", "\"2.75\""],
29+
30+
["date", "Mar 19"],
31+
["time", "22:10:18"],
32+
" xxxxxx journal",
33+
["operator", ":"],
34+
["domain", "xxxxxxx.mylabserver.com"],
35+
" nginx",
36+
["operator", ":"],
37+
["domain", "photos.example.com"],
38+
["ip-address", "127.0.0.1"],
39+
["separator", "- - "],
40+
["punctuation", "["],
41+
["date", "19/Mar/2018"],
42+
["operator", ":"],
43+
["time", "22:10:18 +0000"],
44+
["punctuation", "]"],
45+
["string", "\"GET / HTTP/1.1\""],
46+
["number", "200"],
47+
["number", "1863"],
48+
["string", "\"-\""],
49+
["string", "\"curl/7.29.0\""],
50+
["string", "\"-\""],
51+
52+
["date", "Mar 19"],
53+
["time", "22:10:24"],
54+
" xxxxxxx journal",
55+
["operator", ":"],
56+
["domain", "xxxxxxxx.mylabserver.com"],
57+
" nginx",
58+
["operator", ":"],
59+
["domain", "photos.example.com"],
60+
["ip-address", "127.0.0.1"],
61+
["separator", "- - "],
62+
["punctuation", "["],
63+
["date", "19/Mar/2018"],
64+
["operator", ":"],
65+
["time", "22:10:24 +0000"],
66+
["punctuation", "]"],
67+
["string", "\"GET / HTTP/1.1\""],
68+
["number", "200"],
69+
["number", "53324"],
70+
["string", "\"-\""],
71+
["string", "\"curl/7.29.0\""],
72+
["string", "\"-\""],
73+
74+
"\r\n\r\nTLSv1",
75+
["punctuation", "."],
76+
"2 AES128",
77+
["operator", "-"],
78+
"SHA ",
79+
["ip-address", "1.1.1.1"],
80+
["string", "\"Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0\""],
81+
82+
"\r\nTLSv1",
83+
["punctuation", "."],
84+
"2 ECDHE",
85+
["operator", "-"],
86+
"RSA",
87+
["operator", "-"],
88+
"AES128",
89+
["operator", "-"],
90+
"GCM",
91+
["operator", "-"],
92+
"SHA256 ",
93+
["ip-address", "2.2.2.2"],
94+
["string", "\"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1\""],
95+
96+
"\r\nTLSv1",
97+
["punctuation", "."],
98+
"2 ECDHE",
99+
["operator", "-"],
100+
"RSA",
101+
["operator", "-"],
102+
"AES128",
103+
["operator", "-"],
104+
"GCM",
105+
["operator", "-"],
106+
"SHA256 ",
107+
["ip-address", "3.3.3.3"],
108+
["string", "\"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:58.0) Gecko/20100101 Firefox/58.0\""],
109+
110+
"\r\nTLSv1",
111+
["punctuation", "."],
112+
"2 ECDHE",
113+
["operator", "-"],
114+
"RSA",
115+
["operator", "-"],
116+
"AES128",
117+
["operator", "-"],
118+
"GCM",
119+
["operator", "-"],
120+
"SHA256 ",
121+
["ip-address", "4.4.4.4"],
122+
["string", "\"Mozilla/5.0 (Android 4.4.2; Tablet; rv:65.0) Gecko/65.0 Firefox/65.0\""],
123+
124+
"\r\nTLSv1 AES128",
125+
["operator", "-"],
126+
"SHA ",
127+
["ip-address", "5.5.5.5"],
128+
["string", "\"Mozilla/5.0 (Android 4.4.2; Tablet; rv:65.0) Gecko/65.0 Firefox/65.0\""],
129+
130+
"\r\nTLSv1",
131+
["punctuation", "."],
132+
"2 ECDHE",
133+
["operator", "-"],
134+
"RSA",
135+
["operator", "-"],
136+
"CHACHA20",
137+
["operator", "-"],
138+
"POLY1305 ",
139+
["ip-address", "6.6.6.6"],
140+
["string", "\"Mozilla/5.0 (Linux; U; Android 5.0.2; en-US; XT1068 Build/LXB22.46-28) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.10.2.1164 Mobile Safari/537.36\""]
141+
]

‎tests/languages/log/_npm_console.test

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
npm ERR! code E404
2+
npm ERR! 404 Not Found - GET https://registry.npmjs.org/asdasvsdffafwedsfvfasdfkigpodkfphd - Not found
3+
npm ERR! 404
4+
npm ERR! 404 'asdasvsdffafwedsfvfasdfkigpodkfphd@latest' is not in the npm registry.
5+
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
6+
npm ERR! 404
7+
npm ERR! 404 Note that you can also install from a
8+
npm ERR! 404 tarball, folder, http url, or git url.
9+
10+
npm ERR! A complete log of this run can be found in:
11+
npm ERR! C:\Users\micha\AppData\Roaming\npm-cache\_logs\2021-03-08T19_15_44_229Z-debug.log
12+
13+
----------------------------------------------------
14+
15+
[
16+
"npm ",
17+
["level", "ERR"],
18+
["operator", "!"],
19+
" code E404\r\nnpm ",
20+
["level", "ERR"],
21+
["operator", "!"],
22+
["number", "404"],
23+
" Not Found ",
24+
["operator", "-"],
25+
" GET ",
26+
["url", "https://registry.npmjs.org/asdasvsdffafwedsfvfasdfkigpodkfphd"],
27+
["operator", "-"],
28+
" Not found\r\nnpm ",
29+
["level", "ERR"],
30+
["operator", "!"],
31+
["number", "404"],
32+
33+
"\r\nnpm ",
34+
["level", "ERR"],
35+
["operator", "!"],
36+
["number", "404"],
37+
["string", "'asdasvsdffafwedsfvfasdfkigpodkfphd@latest'"],
38+
" is not in the npm registry",
39+
["punctuation", "."],
40+
41+
"\r\nnpm ",
42+
["level", "ERR"],
43+
["operator", "!"],
44+
["number", "404"],
45+
" You should bug the author to publish it ",
46+
["operator", "("],
47+
"or use the name yourself",
48+
["operator", "!"],
49+
["operator", ")"],
50+
51+
"\r\nnpm ",
52+
["level", "ERR"],
53+
["operator", "!"],
54+
["number", "404"],
55+
56+
"\r\nnpm ",
57+
["level", "ERR"],
58+
["operator", "!"],
59+
["number", "404"],
60+
" Note that you can also install from a\r\nnpm ",
61+
["level", "ERR"],
62+
["operator", "!"],
63+
["number", "404"],
64+
" tarball",
65+
["punctuation", ","],
66+
" folder",
67+
["punctuation", ","],
68+
" http url",
69+
["punctuation", ","],
70+
" or git url",
71+
["punctuation", "."],
72+
73+
"\r\n\r\nnpm ",
74+
["level", "ERR"],
75+
["operator", "!"],
76+
" A complete log of this run can be found in",
77+
["operator", ":"],
78+
79+
"\r\nnpm ",
80+
["level", "ERR"],
81+
["operator", "!"],
82+
["file-path", "C:\\Users\\micha\\AppData\\Roaming\\npm-cache\\_logs\\2021-03-08T19_15_44_229Z-debug.log"]
83+
]

‎tests/languages/log/_npm_log.test

Lines changed: 401 additions & 0 deletions
Large diffs are not rendered by default.

‎tests/languages/log/_table.test

Lines changed: 523 additions & 0 deletions
Large diffs are not rendered by default.

‎tests/languages/log/_tomcat.test

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
23-Jan-2020 16:05:51.597 INFO [http-nio-8080-exec-9] org.apache.catalina.core.ApplicationContext.log HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost'
2+
23-Jan-2020 16:05:51.598 INFO [http-nio-8080-exec-9] org.apache.catalina.core.ApplicationContext.log HTMLManager: init: Global resources are available
3+
23-Jan-2020 16:05:51.606 INFO [http-nio-8080-exec-9] org.apache.catalina.core.ApplicationContext.log HTMLManager: list: Listing contexts for virtual host 'localhost'
4+
23-Jan-2020 16:06:11.673 INFO [http-nio-8080-exec-8] org.apache.catalina.core.ApplicationContext.log HTMLManager: list: Listing contexts for virtual host 'localhost'
5+
21-Nov-2017 11:15:34.986 INFO [main] org.camunda.commons.logging.BaseLogger.logInfo ENGINE-08046 Found camunda bpm platform configuration in CATALINA_BASE/CATALINA_HOME conf directory [C:\asdasd.xml] at 'file:/C:/asdasd.xml'
6+
21-Nov-2017 11:15:35.310 INFO [main] org.camunda.commons.logging.BaseLogger.logInfo ENGINE-12003 Plugin 'ProcessApplicationEventListenerPlugin' activated on process engine 'default'
7+
21-Nov-2017 11:15:35.319 INFO [main] org.camunda.commons.logging.BaseLogger.logInfo ENGINE-12003 Plugin 'SpinProcessEnginePlugin' activated on process engine 'default'
8+
9+
----------------------------------------------------
10+
11+
[
12+
["date", "23-Jan-2020"],
13+
["time", "16:05:51.597"],
14+
["level", "INFO"],
15+
["punctuation", "["],
16+
"http",
17+
["operator", "-"],
18+
"nio",
19+
["operator", "-"],
20+
["number", "8080"],
21+
["operator", "-"],
22+
"exec",
23+
["operator", "-"],
24+
["number", "9"],
25+
["punctuation", "]"],
26+
["property", "org.apache.catalina.core.ApplicationContext.log HTMLManager:"],
27+
["property", "init:"],
28+
" Associated with Deployer ",
29+
["string", "'Catalina:type=Deployer,host=localhost'"],
30+
31+
["date", "23-Jan-2020"],
32+
["time", "16:05:51.598"],
33+
["level", "INFO"],
34+
["punctuation", "["],
35+
"http",
36+
["operator", "-"],
37+
"nio",
38+
["operator", "-"],
39+
["number", "8080"],
40+
["operator", "-"],
41+
"exec",
42+
["operator", "-"],
43+
["number", "9"],
44+
["punctuation", "]"],
45+
["property", "org.apache.catalina.core.ApplicationContext.log HTMLManager:"],
46+
["property", "init:"],
47+
" Global resources are available\r\n",
48+
49+
["date", "23-Jan-2020"],
50+
["time", "16:05:51.606"],
51+
["level", "INFO"],
52+
["punctuation", "["],
53+
"http",
54+
["operator", "-"],
55+
"nio",
56+
["operator", "-"],
57+
["number", "8080"],
58+
["operator", "-"],
59+
"exec",
60+
["operator", "-"],
61+
["number", "9"],
62+
["punctuation", "]"],
63+
["property", "org.apache.catalina.core.ApplicationContext.log HTMLManager:"],
64+
["property", "list:"],
65+
" Listing contexts for virtual host ",
66+
["string", "'localhost'"],
67+
68+
["date", "23-Jan-2020"],
69+
["time", "16:06:11.673"],
70+
["level", "INFO"],
71+
["punctuation", "["],
72+
"http",
73+
["operator", "-"],
74+
"nio",
75+
["operator", "-"],
76+
["number", "8080"],
77+
["operator", "-"],
78+
"exec",
79+
["operator", "-"],
80+
["number", "8"],
81+
["punctuation", "]"],
82+
["property", "org.apache.catalina.core.ApplicationContext.log HTMLManager:"],
83+
["property", "list:"],
84+
" Listing contexts for virtual host ",
85+
["string", "'localhost'"],
86+
87+
["date", "21-Nov-2017"],
88+
["time", "11:15:34.986"],
89+
["level", "INFO"],
90+
["punctuation", "["],
91+
"main",
92+
["punctuation", "]"],
93+
" org",
94+
["punctuation", "."],
95+
"camunda",
96+
["punctuation", "."],
97+
"commons",
98+
["punctuation", "."],
99+
"logging",
100+
["punctuation", "."],
101+
"BaseLogger",
102+
["punctuation", "."],
103+
"logInfo ENGINE",
104+
["operator", "-"],
105+
["number", "08046"],
106+
" Found camunda bpm platform configuration in CATALINA_BASE",
107+
["operator", "/"],
108+
"CATALINA_HOME conf directory ",
109+
["punctuation", "["],
110+
["file-path", "C:\\asdasd.xml"],
111+
["punctuation", "]"],
112+
" at ",
113+
["string", "'file:/C:/asdasd.xml'"],
114+
115+
["date", "21-Nov-2017"],
116+
["time", "11:15:35.310"],
117+
["level", "INFO"],
118+
["punctuation", "["],
119+
"main",
120+
["punctuation", "]"],
121+
" org",
122+
["punctuation", "."],
123+
"camunda",
124+
["punctuation", "."],
125+
"commons",
126+
["punctuation", "."],
127+
"logging",
128+
["punctuation", "."],
129+
"BaseLogger",
130+
["punctuation", "."],
131+
"logInfo ENGINE",
132+
["operator", "-"],
133+
["number", "12003"],
134+
" Plugin ",
135+
["string", "'ProcessApplicationEventListenerPlugin'"],
136+
" activated on process engine ",
137+
["string", "'default'"],
138+
139+
["date", "21-Nov-2017"],
140+
["time", "11:15:35.319"],
141+
["level", "INFO"],
142+
["punctuation", "["],
143+
"main",
144+
["punctuation", "]"],
145+
" org",
146+
["punctuation", "."],
147+
"camunda",
148+
["punctuation", "."],
149+
"commons",
150+
["punctuation", "."],
151+
"logging",
152+
["punctuation", "."],
153+
"BaseLogger",
154+
["punctuation", "."],
155+
"logInfo ENGINE",
156+
["operator", "-"],
157+
["number", "12003"],
158+
" Plugin ",
159+
["string", "'SpinProcessEnginePlugin'"],
160+
" activated on process engine ",
161+
["string", "'default'"]
162+
]

‎tests/languages/log/_windows.test

Lines changed: 278 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,278 @@
1+
4/1/2020 14:15:27 - PFRO Error: \??\C:\Windows\system32\spool\DRIVERS\x64\3\New\FXSWZRD.DLL, \??\C:\Windows\system32\spool\DRIVERS\x64\3\FXSWZRD.DLL, 0xc000003a
2+
4/1/2020 14:15:27 - PFRO Error: \??\C:\Windows\system32\spool\DRIVERS\x64\3\New\FXSTIFF.DLL, \??\C:\Windows\system32\spool\DRIVERS\x64\3\FXSTIFF.DLL, 0xc000003a
3+
4/1/2020 14:15:27 - PFRO Error: \??\C:\Windows\system32\spool\DRIVERS\x64\3\New\FXSRES.DLL, \??\C:\Windows\system32\spool\DRIVERS\x64\3\FXSRES.DLL, 0xc000003a
4+
4/1/2020 14:15:27 - PFRO Error: \??\C:\Windows\system32\spool\DRIVERS\x64\3\New\FXSAPI.DLL, \??\C:\Windows\system32\spool\DRIVERS\x64\3\FXSAPI.DLL, 0xc000003a
5+
6+
AudMig: Device Ids match - {5}.\?hdaudio#func_03&ven_40de&dev_0083&subsys_50de130f&rev_4003#1&13efefe3&0&0004#{6993ad03-95ef-33d0-a2cc-00a0c9322596} opo04/00040002 {2}.\?hdaudio#func_01&ven_40de&dev_0084&subsys_10de310f&rev_1004#2&22efefe2&0&0004#{6994ad04-94ef-32d0-a1cc-00a0c9181396} opo04/00030001
7+
AudMig: Migrated {a31c434e-df4c-1efd-8010-67d416a840e0},2 property at 3
8+
AudMig: Migrated {9627b1b9-13ee-5c33-b54c-7b3555c991cc},4 property at 7
9+
AudMig: Migrated {339abffc-30a7-47ce-af08-68c9a7d74466},22 property at 14
10+
AudMig: Migrating role and device state from SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioRender{8B3B1D07-43C4-2BB5-B0ED-DCD49D5F3BCC} to SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioRender{C4B8172F-B522-160B-A3A9-180AC778147E}
11+
AudMig: Device Ids match - {5}.\?hdaudio#func_01&ven_40de&dev_0081&subsys_20de310f&rev_2004#2&22efefe1&0&0005#{6993ad02-93ef-31d0-a5cc-00a0c9354396} opo05/00020000 {2}.\?hdaudio#func_03&ven_30de&dev_0081&subsys_30de240f&rev_4002#2&34efefe4&0&0003#{6991ad01-95ef-34d0-a1cc-00a0c9543296} opo03/00050000
12+
AudMig: Migrated {a51c424e-df5c-4efd-8020-67d126a820e0},1 property at 5
13+
14+
----------------------------------------------------
15+
16+
[
17+
["date", "4/1/2020"],
18+
["time", "14:15:27"],
19+
["operator", "-"],
20+
" PFRO Error",
21+
["operator", ":"],
22+
" \\",
23+
["operator", "?"],
24+
["operator", "?"],
25+
"\\",
26+
["file-path", "C:\\Windows\\system32\\spool\\DRIVERS\\x64\\3\\New\\FXSWZRD.DLL"],
27+
["punctuation", ","],
28+
" \\",
29+
["operator", "?"],
30+
["operator", "?"],
31+
"\\",
32+
["file-path", "C:\\Windows\\system32\\spool\\DRIVERS\\x64\\3\\FXSWZRD.DLL"],
33+
["punctuation", ","],
34+
["number", "0xc000003a"],
35+
36+
["date", "4/1/2020"],
37+
["time", "14:15:27"],
38+
["operator", "-"],
39+
" PFRO Error",
40+
["operator", ":"],
41+
" \\",
42+
["operator", "?"],
43+
["operator", "?"],
44+
"\\",
45+
["file-path", "C:\\Windows\\system32\\spool\\DRIVERS\\x64\\3\\New\\FXSTIFF.DLL"],
46+
["punctuation", ","],
47+
" \\",
48+
["operator", "?"],
49+
["operator", "?"],
50+
"\\",
51+
["file-path", "C:\\Windows\\system32\\spool\\DRIVERS\\x64\\3\\FXSTIFF.DLL"],
52+
["punctuation", ","],
53+
["number", "0xc000003a"],
54+
55+
["date", "4/1/2020"],
56+
["time", "14:15:27"],
57+
["operator", "-"],
58+
" PFRO Error",
59+
["operator", ":"],
60+
" \\",
61+
["operator", "?"],
62+
["operator", "?"],
63+
"\\",
64+
["file-path", "C:\\Windows\\system32\\spool\\DRIVERS\\x64\\3\\New\\FXSRES.DLL"],
65+
["punctuation", ","],
66+
" \\",
67+
["operator", "?"],
68+
["operator", "?"],
69+
"\\",
70+
["file-path", "C:\\Windows\\system32\\spool\\DRIVERS\\x64\\3\\FXSRES.DLL"],
71+
["punctuation", ","],
72+
["number", "0xc000003a"],
73+
74+
["date", "4/1/2020"],
75+
["time", "14:15:27"],
76+
["operator", "-"],
77+
" PFRO Error",
78+
["operator", ":"],
79+
" \\",
80+
["operator", "?"],
81+
["operator", "?"],
82+
"\\",
83+
["file-path", "C:\\Windows\\system32\\spool\\DRIVERS\\x64\\3\\New\\FXSAPI.DLL"],
84+
["punctuation", ","],
85+
" \\",
86+
["operator", "?"],
87+
["operator", "?"],
88+
"\\",
89+
["file-path", "C:\\Windows\\system32\\spool\\DRIVERS\\x64\\3\\FXSAPI.DLL"],
90+
["punctuation", ","],
91+
["number", "0xc000003a"],
92+
93+
["property", "AudMig:"],
94+
" Device Ids match ",
95+
["operator", "-"],
96+
["operator", "{"],
97+
["number", "5"],
98+
["operator", "}"],
99+
["punctuation", "."],
100+
"\\",
101+
["operator", "?"],
102+
"hdaudio",
103+
["operator", "#"],
104+
"func_03",
105+
["operator", "&"],
106+
"ven_40de",
107+
["operator", "&"],
108+
"dev_0083",
109+
["operator", "&"],
110+
"subsys_50de130f",
111+
["operator", "&"],
112+
"rev_4003",
113+
["operator", "#"],
114+
["number", "1"],
115+
["operator", "&"],
116+
["number", "13efefe3"],
117+
["operator", "&"],
118+
["number", "0"],
119+
["operator", "&"],
120+
["number", "0004"],
121+
["operator", "#"],
122+
["operator", "{"],
123+
["uuid", "6993ad03-95ef-33d0-a2cc-00a0c9322596"],
124+
["operator", "}"],
125+
" opo04",
126+
["operator", "/"],
127+
["number", "00040002"],
128+
["operator", "{"],
129+
["number", "2"],
130+
["operator", "}"],
131+
["punctuation", "."],
132+
"\\",
133+
["operator", "?"],
134+
"hdaudio",
135+
["operator", "#"],
136+
"func_01",
137+
["operator", "&"],
138+
"ven_40de",
139+
["operator", "&"],
140+
"dev_0084",
141+
["operator", "&"],
142+
"subsys_10de310f",
143+
["operator", "&"],
144+
"rev_1004",
145+
["operator", "#"],
146+
["number", "2"],
147+
["operator", "&"],
148+
["number", "22efefe2"],
149+
["operator", "&"],
150+
["number", "0"],
151+
["operator", "&"],
152+
["number", "0004"],
153+
["operator", "#"],
154+
["operator", "{"],
155+
["uuid", "6994ad04-94ef-32d0-a1cc-00a0c9181396"],
156+
["operator", "}"],
157+
" opo04",
158+
["operator", "/"],
159+
["number", "00030001"],
160+
161+
["property", "AudMig:"],
162+
" Migrated ",
163+
["operator", "{"],
164+
["uuid", "a31c434e-df4c-1efd-8010-67d416a840e0"],
165+
["operator", "}"],
166+
["punctuation", ","],
167+
["number", "2"],
168+
" property at ",
169+
["number", "3"],
170+
171+
["property", "AudMig:"],
172+
" Migrated ",
173+
["operator", "{"],
174+
["uuid", "9627b1b9-13ee-5c33-b54c-7b3555c991cc"],
175+
["operator", "}"],
176+
["punctuation", ","],
177+
["number", "4"],
178+
" property at ",
179+
["number", "7"],
180+
181+
["property", "AudMig:"],
182+
" Migrated ",
183+
["operator", "{"],
184+
["uuid", "339abffc-30a7-47ce-af08-68c9a7d74466"],
185+
["operator", "}"],
186+
["punctuation", ","],
187+
["number", "22"],
188+
" property at ",
189+
["number", "14"],
190+
191+
["property", "AudMig:"],
192+
" Migrating role and device state from SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioRender",
193+
["operator", "{"],
194+
["uuid", "8B3B1D07-43C4-2BB5-B0ED-DCD49D5F3BCC"],
195+
["operator", "}"],
196+
" to SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioRender",
197+
["operator", "{"],
198+
["uuid", "C4B8172F-B522-160B-A3A9-180AC778147E"],
199+
["operator", "}"],
200+
201+
["property", "AudMig:"],
202+
" Device Ids match ",
203+
["operator", "-"],
204+
["operator", "{"],
205+
["number", "5"],
206+
["operator", "}"],
207+
["punctuation", "."],
208+
"\\",
209+
["operator", "?"],
210+
"hdaudio",
211+
["operator", "#"],
212+
"func_01",
213+
["operator", "&"],
214+
"ven_40de",
215+
["operator", "&"],
216+
"dev_0081",
217+
["operator", "&"],
218+
"subsys_20de310f",
219+
["operator", "&"],
220+
"rev_2004",
221+
["operator", "#"],
222+
["number", "2"],
223+
["operator", "&"],
224+
["number", "22efefe1"],
225+
["operator", "&"],
226+
["number", "0"],
227+
["operator", "&"],
228+
["number", "0005"],
229+
["operator", "#"],
230+
["operator", "{"],
231+
["uuid", "6993ad02-93ef-31d0-a5cc-00a0c9354396"],
232+
["operator", "}"],
233+
" opo05",
234+
["operator", "/"],
235+
["number", "00020000"],
236+
["operator", "{"],
237+
["number", "2"],
238+
["operator", "}"],
239+
["punctuation", "."],
240+
"\\",
241+
["operator", "?"],
242+
"hdaudio",
243+
["operator", "#"],
244+
"func_03",
245+
["operator", "&"],
246+
"ven_30de",
247+
["operator", "&"],
248+
"dev_0081",
249+
["operator", "&"],
250+
"subsys_30de240f",
251+
["operator", "&"],
252+
"rev_4002",
253+
["operator", "#"],
254+
["number", "2"],
255+
["operator", "&"],
256+
["number", "34efefe4"],
257+
["operator", "&"],
258+
["number", "0"],
259+
["operator", "&"],
260+
["number", "0003"],
261+
["operator", "#"],
262+
["operator", "{"],
263+
["uuid", "6991ad01-95ef-34d0-a1cc-00a0c9543296"],
264+
["operator", "}"],
265+
" opo03",
266+
["operator", "/"],
267+
["number", "00050000"],
268+
269+
["property", "AudMig:"],
270+
" Migrated ",
271+
["operator", "{"],
272+
["uuid", "a51c424e-df5c-4efd-8020-67d126a820e0"],
273+
["operator", "}"],
274+
["punctuation", ","],
275+
["number", "1"],
276+
" property at ",
277+
["number", "5"]
278+
]

‎tests/languages/log/date_feature.test

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2020-03-11
2+
28/Jul/1995
3+
2017-05-11
4+
Mar 2
5+
Apr 26
6+
Sun Mar 2
7+
23 SEP 2013
8+
1/26/2021
9+
4/1/2020
10+
11+
2020-03-23T04:21:20Z
12+
13+
----------------------------------------------------
14+
15+
[
16+
["date", "2020-03-11"],
17+
["date", "28/Jul/1995"],
18+
["date", "2017-05-11"],
19+
["date", "Mar 2"],
20+
["date", "Apr 26"],
21+
["date", "Sun Mar 2"],
22+
["date", "23 SEP 2013"],
23+
["date", "1/26/2021"],
24+
["date", "4/1/2020"],
25+
26+
["date", "2020-03-23T"], ["time", "04:21:20Z"]
27+
]

‎tests/languages/log/hash_feature.test

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
A3DCB4D229DE6FDE0DB5686DEE47145D
2+
0c5259c3dd0a7c46f4835221645f62a0638c9b9faa02af08676e8069e1ff964b
3+
4+
----------------------------------------------------
5+
6+
[
7+
["hash", "A3DCB4D229DE6FDE0DB5686DEE47145D"],
8+
["hash", "0c5259c3dd0a7c46f4835221645f62a0638c9b9faa02af08676e8069e1ff964b"]
9+
]
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
ALERT
2+
CRIT
3+
CRITICAL
4+
EMERG
5+
EMERGENCY
6+
ERR
7+
ERROR
8+
FAILURE
9+
FATAL
10+
SEVERE
11+
12+
WARN
13+
WARNING
14+
15+
DISPLAY
16+
INFO
17+
NOTICE
18+
STATUS
19+
20+
DEBUG
21+
FINE
22+
23+
FINER
24+
FINEST
25+
TRACE
26+
VERBOSE
27+
28+
----------------------------------------------------
29+
30+
[
31+
["level", "ALERT"],
32+
["level", "CRIT"],
33+
["level", "CRITICAL"],
34+
["level", "EMERG"],
35+
["level", "EMERGENCY"],
36+
["level", "ERR"],
37+
["level", "ERROR"],
38+
["level", "FAILURE"],
39+
["level", "FATAL"],
40+
["level", "SEVERE"],
41+
42+
["level", "WARN"],
43+
["level", "WARNING"],
44+
45+
["level", "DISPLAY"],
46+
["level", "INFO"],
47+
["level", "NOTICE"],
48+
["level", "STATUS"],
49+
50+
["level", "DEBUG"],
51+
["level", "FINE"],
52+
53+
["level", "FINER"],
54+
["level", "FINEST"],
55+
["level", "TRACE"],
56+
["level", "VERBOSE"]
57+
]
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
123
2+
213.456
3+
0000000014A9A320
4+
5+
0xff
6+
0x3000
7+
0b01010
8+
0o777
9+
10+
1.2
11+
v1.2
12+
v1.2.3
13+
14+
32ms
15+
3.70GHz
16+
0.000000s
17+
59.951Hz
18+
1TB
19+
20+
----------------------------------------------------
21+
22+
[
23+
["number", "123"],
24+
["number", "213.456"],
25+
["number", "0000000014A9A320"],
26+
27+
["number", "0xff"],
28+
["number", "0x3000"],
29+
["number", "0b01010"],
30+
["number", "0o777"],
31+
32+
["number", "1.2"],
33+
["number", "v1.2"],
34+
["number", "v1.2.3"],
35+
36+
["number", "32ms"],
37+
["number", "3.70GHz"],
38+
["number", "0.000000s"],
39+
["number", "59.951Hz"],
40+
["number", "1TB"]
41+
]

‎tests/languages/log/path_feature.test

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
c:/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg
2+
C:\stuff\workspace\quickpoll\quickpollEJB\pom.xml
3+
C:\WINDOWS\system32\DRIVERS\storahci.sys
4+
5+
/USR/SBIN/CRON
6+
/etc/ppp/ip-down
7+
8+
/usr/share/doc/tama/examples/tama-nanny.exp 2>/dev/null >/dev/null
9+
10+
/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14
11+
12+
----------------------------------------------------
13+
14+
[
15+
["file-path", "c:/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg"],
16+
["file-path", "C:\\stuff\\workspace\\quickpoll\\quickpollEJB\\pom.xml"],
17+
["file-path", "C:\\WINDOWS\\system32\\DRIVERS\\storahci.sys"],
18+
19+
["file-path", "/USR/SBIN/CRON"],
20+
["file-path", "/etc/ppp/ip-down"],
21+
22+
["file-path", "/usr/share/doc/tama/examples/tama-nanny.exp"],
23+
["number", "2"],
24+
["operator", ">"],
25+
["file-path", "/dev/null"],
26+
["operator", ">"],
27+
["file-path", "/dev/null"],
28+
29+
["file-path", "/usr/local/lib/node_modules/npm/lib/utils/spawn.js"],
30+
["operator", ":"],
31+
["number", "24"],
32+
["operator", ":"],
33+
["number", "14"]
34+
]
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
[1119/000645.591:ERROR:process_info.cc(329)] VirtualQueryEx: Zugriff verweigert (0x5)
2+
3+
Video:
4+
Renderer: Vulkan
5+
Resolution: 1280x720
6+
Aspect ratio: 16:9
7+
Frame limit: Auto
8+
Vulkan:
9+
Adapter: GeForce GTX 1080 Ti
10+
Force FIFO present mode: false
11+
Force primitive restart flag: false
12+
Force Disable Exclusive Fullscreen Mode: false
13+
Performance Overlay:
14+
Enabled: false
15+
Enable Framerate Graph: false
16+
Enable Frametime Graph: false
17+
Detail level: Medium
18+
Metrics update interval (ms): 350
19+
Font size (px): 10
20+
Body Color (hex): "#FFE138FF"
21+
Body Background (hex): "#002339FF"
22+
Title Color (hex): "#F26C24FF"
23+
Title Background (hex): "#00000000"
24+
Shader Compilation Hint:
25+
Position X (px): 20
26+
Position Y (px): 690
27+
28+
[2020-06-11 16:12:02.642] [DISPLAY] [Main ] [main] Build type: FMB
29+
30+
Min/Max Sample Rate: 100, 200000
31+
32+
----------------------------------------------------
33+
34+
[
35+
["punctuation", "["],
36+
["number", "1119"],
37+
["operator", "/"],
38+
["number", "000645.591"],
39+
["operator", ":"],
40+
["level", "ERROR"],
41+
["operator", ":"],
42+
"process_info",
43+
["punctuation", "."],
44+
"cc",
45+
["operator", "("],
46+
["number", "329"],
47+
["operator", ")"],
48+
["punctuation", "]"],
49+
["property", "VirtualQueryEx:"],
50+
" Zugriff verweigert ",
51+
["operator", "("],
52+
["number", "0x5"],
53+
["operator", ")"],
54+
55+
["property", "Video:"],
56+
["property", "Renderer:"], " Vulkan\r\n ",
57+
["property", "Resolution:"], " 1280x720\r\n ",
58+
["property", "Aspect ratio:"], ["number", "16"], ["operator", ":"], ["number", "9"],
59+
["property", "Frame limit:"], " Auto\r\n ",
60+
["property", "Vulkan:"],
61+
["property", "Adapter:"], " GeForce GTX ", ["number", "1080"], " Ti\r\n ",
62+
["property", "Force FIFO present mode:"], ["boolean", "false"],
63+
["property", "Force primitive restart flag:"], ["boolean", "false"],
64+
["property", "Force Disable Exclusive Fullscreen Mode:"], ["boolean", "false"],
65+
["property", "Performance Overlay:"],
66+
["property", "Enabled:"], ["boolean", "false"],
67+
["property", "Enable Framerate Graph:"], ["boolean", "false"],
68+
["property", "Enable Frametime Graph:"], ["boolean", "false"],
69+
["property", "Detail level:"], " Medium\r\n ",
70+
["property", "Metrics update interval (ms):"], ["number", "350"],
71+
["property", "Font size (px):"], ["number", "10"],
72+
["property", "Body Color (hex):"], ["string", "\"#FFE138FF\""],
73+
["property", "Body Background (hex):"], ["string", "\"#002339FF\""],
74+
["property", "Title Color (hex):"], ["string", "\"#F26C24FF\""],
75+
["property", "Title Background (hex):"], ["string", "\"#00000000\""],
76+
["property", "Shader Compilation Hint:"],
77+
["property", "Position X (px):"], ["number", "20"],
78+
["property", "Position Y (px):"], ["number", "690"],
79+
80+
["punctuation", "["],
81+
["date", "2020-06-11"],
82+
["time", "16:12:02.642"],
83+
["punctuation", "]"],
84+
["punctuation", "["],
85+
["level", "DISPLAY"],
86+
["punctuation", "]"],
87+
["punctuation", "["],
88+
"Main ",
89+
["punctuation", "]"],
90+
["punctuation", "["],
91+
"main",
92+
["punctuation", "]"],
93+
["property", "Build type:"],
94+
" FMB\r\n\r\n",
95+
96+
["property", "Min/Max Sample Rate:"],
97+
["number", "100"],
98+
["punctuation", ","],
99+
["number", "200000"]
100+
]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
-----
2+
3+
sysadm.bda.nasa.gov - - [28/Jul/1995:13:30:20 -0400] "GET /elv/endba11.gif HTTP/1.0" 200 306
4+
5+
2017-05-11 15:05:28.889 INFO 30284 --- [ost-staItStop-1] o.s.web.context.ContextLoadeI : Root WebApplicationContext: initialization completed in 911 ms
6+
7+
----------------------------------------------------
8+
9+
[
10+
["separator", "-----"],
11+
12+
["domain", "sysadm.bda.nasa.gov"],
13+
["separator", "- - "],
14+
["punctuation", "["],
15+
["date", "28/Jul/1995"],
16+
["operator", ":"],
17+
["time", "13:30:20 -0400"],
18+
["punctuation", "]"],
19+
["string", "\"GET /elv/endba11.gif HTTP/1.0\""],
20+
["number", "200"],
21+
["number", "306"],
22+
23+
["date", "2017-05-11"],
24+
["time", "15:05:28.889"],
25+
["level", "INFO"],
26+
["number", "30284"],
27+
["separator", "---"],
28+
["punctuation", "["],
29+
"ost",
30+
["operator", "-"],
31+
"staItStop",
32+
["operator", "-"],
33+
["number", "1"],
34+
["punctuation", "]"],
35+
" o",
36+
["punctuation", "."],
37+
"s",
38+
["punctuation", "."],
39+
"web",
40+
["punctuation", "."],
41+
"context",
42+
["punctuation", "."],
43+
"ContextLoadeI ",
44+
["operator", ":"],
45+
" Root WebApplicationContext",
46+
["operator", ":"],
47+
" initialization completed in ",
48+
["number", "911"],
49+
" ms"
50+
]
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
"GET /history/apollo/images/apollo-log01.gif HTTP/1.0"
2+
"{[/],methods=[GET]}"
3+
4+
TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 2.2.2.2 "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
5+
6+
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
7+
8+
This isn't a string but this is: 'string'
9+
10+
----------------------------------------------------
11+
12+
[
13+
["string", "\"GET /history/apollo/images/apollo-log01.gif HTTP/1.0\""],
14+
["string", "\"{[/],methods=[GET]}\""],
15+
16+
"\r\n\r\nTLSv1",
17+
["punctuation", "."],
18+
"2 ECDHE",
19+
["operator", "-"],
20+
"RSA",
21+
["operator", "-"],
22+
"AES128",
23+
["operator", "-"],
24+
"GCM",
25+
["operator", "-"],
26+
"SHA256 ",
27+
["ip-address", "2.2.2.2"],
28+
["string", "\"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1\""],
29+
30+
["number", "13"],
31+
" error argv ",
32+
["string", "\"/usr/local/bin/node\""],
33+
["string", "\"/usr/local/bin/npm\""],
34+
["string", "\"start\""],
35+
36+
"\r\n\r\nThis isn't a string but this is",
37+
["operator", ":"],
38+
["string", "'string'"]
39+
]

‎tests/languages/log/time_feature.test

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
9:52:58
2+
15:05:28.889
3+
19:38:12,729
4+
00:29:13:038
5+
13:30:12
6+
7+
13:30:19 -0400
8+
13:30:15 +9400
9+
10+
2020-03-23T04:21:20Z
11+
12+
----------------------------------------------------
13+
14+
[
15+
["time", "9:52:58"],
16+
["time", "15:05:28.889"],
17+
["time", "19:38:12,729"],
18+
["time", "00:29:13:038"],
19+
["time", "13:30:12"],
20+
21+
["time", "13:30:19 -0400"],
22+
["time", "13:30:15 +9400"],
23+
24+
["date", "2020-03-23T"], ["time", "04:21:20Z"]
25+
]

‎tests/languages/log/url_feature.test

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
http://66.140.25.157:802/
2+
file://c:/repository
3+
4+
Foo <https://foo.bar/contact.html>
5+
6+
- Mapping virtual host: http://download.spinetix.com/spxjslibs
7+
8+
Failed to transfer file: http://repo.xxxx.com/foo/bar.pom. Return code is
9+
10+
----------------------------------------------------
11+
12+
[
13+
["url", "http://66.140.25.157:802/"],
14+
["url", "file://c:/repository"],
15+
16+
"\r\n\r\nFoo ",
17+
["operator", "<"],
18+
["url", "https://foo.bar/contact.html"],
19+
["operator", ">"],
20+
21+
["operator", "-"],
22+
" Mapping virtual host",
23+
["operator", ":"],
24+
["url", "http://download.spinetix.com/spxjslibs"],
25+
26+
["property", "Failed to transfer file:"],
27+
["url", "http://repo.xxxx.com/foo/bar.pom"],
28+
["punctuation", "."],
29+
" Return code is"
30+
]

‎tests/languages/log/uuid_feature.test

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
86695F12-340E-4F04-9FD3-9253DD327460
2+
F9F19DA5-3B09-4B2F-9D89-C64753E3EAAB
3+
4+
----------------------------------------------------
5+
6+
[
7+
["uuid", "86695F12-340E-4F04-9FD3-9253DD327460"],
8+
["uuid", "F9F19DA5-3B09-4B2F-9D89-C64753E3EAAB"]
9+
]

0 commit comments

Comments
 (0)
Please sign in to comment.