1 |
|
2 | export default class StreamOutput {
|
3 | readonly type: 'stdout' | 'stderr';
|
4 | readonly stream: NodeJS.WriteStream;
|
5 | static logToFile(msg: string, logfile: string): void;
|
6 | private static startOfLine;
|
7 | readonly output: string;
|
8 | constructor(type: 'stdout' | 'stderr', stream: NodeJS.WriteStream);
|
9 | write(msg?: string, options?: {
|
10 | log?: boolean;
|
11 | }): void;
|
12 | log(data?: string, ...args: any[]): void;
|
13 | writeLogFile(msg: string, withTimestamp: boolean): void;
|
14 | readonly logfile: string | undefined;
|
15 | private timestamp(msg);
|
16 | }
|