tslog/StdoutDispatch.ts
2025-02-05 11:24:37 +01:00

10 lines
310 B
TypeScript

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