fix output fmt

This commit is contained in:
Strix 2025-02-13 11:35:07 +01:00
parent 9bf7fa4302
commit 5215ba24cc

View file

@ -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`)
}
};