@bubblewrap/core
Version:
Core Library to generate, build and sign TWA projects
21 lines (20 loc) • 697 B
TypeScript
import { Log } from './Log';
/**
* A Log that wraps another Log, saving up all the log calls to be applied when flush is called.
*
* It doesn't currently support arguments to the log messages.
*/
export declare class BufferedLog implements Log {
private innerLog;
private pendingLogs;
constructor(innerLog: Log);
debug: (message: string) => void;
info: (message: string) => void;
warn: (message: string) => void;
error: (message: string) => void;
/** Creates a function that adds a log at the given level. */
private addLogFunction;
setVerbose(verbose: boolean): void;
/** Flushes all recorded logs to the underlying object. */
flush(): void;
}