This commit is contained in:
ex61wi
2026-04-06 00:53:50 +02:00
parent 9e64c6b8d2
commit 299b61a497
@@ -0,0 +1,26 @@
import * as vscode from 'vscode';
export class Logger {
private outputChannel: vscode.OutputChannel;
constructor(){
this.outputChannel = vscode.window.createOutputChannel('DCS Scripting Tools');
}
log(message: string) {
this.outputChannel.appendLine(message);
}
info(message: string) {
this.outputChannel.appendLine(`[${new Date().toISOString()}][INFO] ${message}`);
}
error(message: string) {
this.outputChannel.appendLine(`[${new Date().toISOString()}][ERROR] ${message}`);
}
dispose() {
this.outputChannel.dispose();
}
}