vscode: Add task to view logs for last DSQA run

This commit is contained in:
John Colvin committed 2024-06-07 11:34:36 -05:00
1 parent 23d7d3775d
commit f93d28ee76
2 files changed
+30 -1

No files matched your search

+24 -1
View File
@@ -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": [
{
+6
View File
@@ -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