vscode: Add task to view logs for last DSQA run
This commit is contained in:
1 parent
23d7d3775d
commit
f93d28ee76
2 files changed
+30
-1
No files matched your search
Vendored
+24
-1
@@ -660,7 +660,30 @@
|
||||
"id": "run",
|
||||
"color": "terminal.ansiGreen",
|
||||
},
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "View DataStreamQueryAnalyzer Logs (Last Run)",
|
||||
"type": "process",
|
||||
"command": "",
|
||||
"windows": {
|
||||
"command": "tools/logging/show_last_run.cmd",
|
||||
"args": [
|
||||
"DataStream",
|
||||
"DataStreamQueryAnalyzer.exe",
|
||||
"'Starting DataStreamQueryAnalyzer'"
|
||||
]
|
||||
},
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"focus": true,
|
||||
"panel": "shared",
|
||||
"showReuseMessage": false,
|
||||
"close": true,
|
||||
},
|
||||
"icon": {
|
||||
"id": "wrench"
|
||||
},
|
||||
},
|
||||
],
|
||||
"inputs": [
|
||||
{
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
@echo off
|
||||
|
||||
set log_dir="%APPDATA%/bts/%1/data/logging.%2"
|
||||
set num_lines=9999
|
||||
|
||||
tac "%log_dir%/log" | grep "%3" -m 1 -B %num_lines% | tac | less
|
||||
Reference in new issue
Block a user