Skip to content

Commit 509108f

Browse files
committed
1 parent d7f3531 commit 509108f

5 files changed

Lines changed: 710 additions & 0 deletions

File tree

extensions/log/OSSREADME.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// ATTENTION - THIS DIRECTORY CONTAINS THIRD PARTY OPEN SOURCE MATERIALS:
2+
[
3+
{
4+
"name": "vscode-logfile-highlighter",
5+
"version": "1.2.0",
6+
"license": "MIT",
7+
"repositoryURL": "https://github.com/emilast/vscode-logfile-highlighter"
8+
}
9+
]

extensions/log/package.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "log",
3+
"version": "0.1.0",
4+
"publisher": "vscode",
5+
"engines": {
6+
"vscode": "*"
7+
},
8+
"scripts": {
9+
"update-grammar": "node ../../build/npm/update-grammar.js emilast/vscode-logfile-highlighter syntaxes/log.tmLanguage ./syntaxes/log.tmLanguage.json"
10+
},
11+
"contributes": {
12+
"languages": [
13+
{
14+
"id": "log",
15+
"extensions": [
16+
".log"
17+
],
18+
"aliases": [
19+
"log"
20+
]
21+
}
22+
],
23+
"grammars": [
24+
{
25+
"language": "Log",
26+
"scopeName": "text.log",
27+
"path": "./syntaxes/log.tmLanguage.json"
28+
},
29+
{
30+
"language": "log",
31+
"scopeName": "text.log",
32+
"path": "./syntaxes/log.tmLanguage.json"
33+
}
34+
]
35+
}
36+
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"information_for_contributors": [
3+
"This file has been converted from https://github.com/emilast/vscode-logfile-highlighter/blob/master/syntaxes/log.tmLanguage",
4+
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
5+
"Once accepted there, we are happy to receive an update request."
6+
],
7+
"version": "https://github.com/emilast/vscode-logfile-highlighter/commit/3f3ea0a69165bc95f62bb487fda73e925ae229a6",
8+
"scopeName": "text.log",
9+
"fileTypes": [
10+
"log"
11+
],
12+
"name": "Log file",
13+
"patterns": [
14+
{
15+
"match": "\\b(DEBUG)\\b|(?i)\\b(debug)\\:",
16+
"name": "markup.changed log.debug"
17+
},
18+
{
19+
"match": "(?i)\\[(debug|dbug|dbg|de|d)\\]",
20+
"name": "markup.changed log.debug"
21+
},
22+
{
23+
"match": "\\b(HINT|INFO|INFORMATION)\\b|(?i)\\b(info|information)\\:",
24+
"name": "markup.inserted log.info"
25+
},
26+
{
27+
"match": "(?i)\\[(information|info|inf|in|i)\\]",
28+
"name": "markup.inserted log.info"
29+
},
30+
{
31+
"match": "\\b(WARNING|WARN)\\b|(?i)\\b(warning)\\:",
32+
"name": "markup.deleted log.warning"
33+
},
34+
{
35+
"match": "(?i)\\[(warning|warn|wrn|wn|w)\\]",
36+
"name": "markup.deleted log.warning"
37+
},
38+
{
39+
"match": "\\b(ERROR|FAILURE|FAIL)\\b|(?i)\\b(error)\\:",
40+
"name": "string.regexp, strong log.error"
41+
},
42+
{
43+
"match": "(?i)\\[(error|eror|err|er|e|fatal|fatl|ftl|fa|f)\\]",
44+
"name": "string.regexp, strong log.error"
45+
},
46+
{
47+
"match": "\\b\\d{4}-\\d{2}-\\d{2}(T|\\b)",
48+
"name": "comment log.date"
49+
},
50+
{
51+
"match": "\\b\\d{2}[^\\w\\s]\\d{2}[^\\w\\s]\\d{4}\\b",
52+
"name": "comment log.date"
53+
},
54+
{
55+
"match": "\\d{2}:\\d{2}(:\\d{2}([.,]\\d{3,6})?)?(Z| ?[+-]\\d{2}:\\d{2})?\\b",
56+
"name": "comment log.date"
57+
},
58+
{
59+
"match": "[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}",
60+
"name": "constant.language log.constant"
61+
},
62+
{
63+
"match": "\\b([0-9]+|true|false|null)\\b",
64+
"name": "constant.language log.constant"
65+
},
66+
{
67+
"match": "\"[^\"]*\"",
68+
"name": "string log.string"
69+
},
70+
{
71+
"match": "'[^']*'",
72+
"name": "string log.string"
73+
},
74+
{
75+
"match": "\\b([a-zA-Z.]*Exception)\\b",
76+
"name": "string.regexp, emphasis log.type"
77+
},
78+
{
79+
"begin": "^[\\t ]*at",
80+
"end": "$",
81+
"name": "string.key, emphasis log.exception"
82+
},
83+
{
84+
"match": "\\b(http|https|ftp|file)://\\S+\\b/?",
85+
"name": "constant.language log.constant"
86+
},
87+
{
88+
"match": "\\b([\\w]+\\.)+(\\w)+\\b",
89+
"name": "constant.language log.constant"
90+
}
91+
],
92+
"uuid": "E81BB6AB-CAC7-4C27-9A79-4137A4693EBD"
93+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[2017-12-21 12:47:29.584] [renderer1] [trace] CommandService#executeCommand workbench.view.explorer
2+
[2017-12-21 12:47:29.614] [renderer1] [trace] CommandService#executeCommand setContext
3+
[2017-12-21 12:47:29.632] [renderer1] [trace] SCMService#registerSCMProvider
4+
[2017-12-21 12:47:29.636] [renderer1] [trace] CommandService#executeCommand setContext
5+
[2017-12-21 12:47:32.164] [renderer1] [trace] CommandService#executeCommand workbench.action.showCommands
6+
[2017-12-21 12:47:33.122] [renderer1] [trace] CommandService#executeCommand workbench.action.openLogFile
7+
[2017-12-21 12:47:34.249] [renderer1] [trace] CommandService#executeCommand workbench.action.openLogViewer
8+
[2017-12-21 12:47:48.078] [renderer1] [trace] CommandService#executeCommand workbench.action.showCommands
9+
[2017-12-21 12:47:49.294] [renderer1] [trace] CommandService#executeCommand workbench.action.reloadWindow

0 commit comments

Comments
 (0)