UNPKG

783 BTypeScriptView Raw
1import { ProgressLog } from "../../spi/log/ProgressLog";
2/**
3 * Sometimes new log lines are separated by a character rather than a call to write.
4 * For example, when receiving data events from a child process newlines delimit log lines.
5 */
6export declare class DelimitedWriteProgressLogDecorator implements ProgressLog {
7 private readonly delegate;
8 private readonly lineDelimiter;
9 private lineBuffer;
10 constructor(delegate: ProgressLog, lineDelimiter: string);
11 get name(): string;
12 get url(): string;
13 get log(): string;
14 isAvailable(): Promise<boolean>;
15 write(msg: string, ...args: string[]): void;
16 flush(): Promise<void>;
17 close(): Promise<void>;
18 private writeRemainder;
19}
20//# sourceMappingURL=DelimitedWriteProgressLogDecorator.d.ts.map
\No newline at end of file