Skip to content

Commit

Permalink
fix: logger
Browse files Browse the repository at this point in the history
  • Loading branch information
izatop committed Nov 4, 2020
1 parent d90357b commit d983692
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/util/src/Logger/Transport/InOutTransportAbstract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@ import {Promisify} from "../../interfaces";
import {ILoggerTransport, LogFormat, LogMessage} from "../interfaces";
import {defaultLogFormat} from "./formatters";

export interface ILoggerStreamCallback {
write(log: string, encoding?: string): void;
writable: boolean;
}

export type LoggerWritableStream = ILoggerStreamCallback;

export abstract class InOutTransportAbstract implements ILoggerTransport {
protected abstract readonly stream: NodeJS.WritableStream;
protected abstract readonly stream: LoggerWritableStream;

readonly #format: LogFormat;

Expand Down

0 comments on commit d983692

Please sign in to comment.