From 299b61a4970198c3c2696bed975cdbe3a7ad8307 Mon Sep 17 00:00:00 2001 From: ex61wi <54616262+dutchie031@users.noreply.github.com> Date: Mon, 6 Apr 2026 00:53:50 +0200 Subject: [PATCH] wip --- dutchies-dcs-scripting-tools/src/logger.ts | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dutchies-dcs-scripting-tools/src/logger.ts diff --git a/dutchies-dcs-scripting-tools/src/logger.ts b/dutchies-dcs-scripting-tools/src/logger.ts new file mode 100644 index 0000000..a80a7d5 --- /dev/null +++ b/dutchies-dcs-scripting-tools/src/logger.ts @@ -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(); + } +} \ No newline at end of file