fix output fmt
This commit is contained in:
parent
9bf7fa4302
commit
5215ba24cc
1 changed files with 2 additions and 2 deletions
|
@ -3,8 +3,8 @@ import { ILogItem } from "./ILogItem";
|
||||||
import { LogLevel } from "./LogLevel";
|
import { LogLevel } from "./LogLevel";
|
||||||
|
|
||||||
let CURRENT_DISPATCH: Dispatch = new class extends Dispatch {
|
let CURRENT_DISPATCH: Dispatch = new class extends Dispatch {
|
||||||
process(item: ILogItem): void {
|
output(item: ILogItem): void {
|
||||||
console.log(item.data);
|
process.stdout.write(`level{${item.level}} timestamp{${item.timestamp}} origin{${item.origin}} flags{${item.flags}} data{${item.data}}\n`)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue