From 5215ba24ccc962ae0c02191ad63f9fc75e24ccbd Mon Sep 17 00:00:00 2001 From: Strix Date: Thu, 13 Feb 2025 11:35:07 +0100 Subject: [PATCH] fix output fmt --- common.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.ts b/common.ts index ce4a3a8..80eec6a 100644 --- a/common.ts +++ b/common.ts @@ -3,8 +3,8 @@ import { ILogItem } from "./ILogItem"; import { LogLevel } from "./LogLevel"; let CURRENT_DISPATCH: Dispatch = new class extends Dispatch { - process(item: ILogItem): void { - console.log(item.data); + output(item: ILogItem): void { + process.stdout.write(`level{${item.level}} timestamp{${item.timestamp}} origin{${item.origin}} flags{${item.flags}} data{${item.data}}\n`) } };