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