tslog/StdoutDispatch.ts
2025-02-03 11:33:47 +01:00

11 lines
344 B
TypeScript

import { FormattedDispatch } from "./FormattedDispatch";
import { IDispatch } from "./IDispatch";
import { ILogItem } from "./ILogItem";
import { LogLevel } from "./LogLevel";
export class StdoutDispatch extends FormattedDispatch {
process(item: ILogItem) {
process.stdout.write(this.format(item) + "\n");
super.process(item);
}
}