splid-js-googlesheet-updater/node_modules/splid-js/dist/mjs/logging.d.ts
2025-05-27 21:06:02 +02:00

22 lines
683 B
TypeScript

export type LogFunction = (...args: Array<unknown>) => void;
export interface Logger {
fatal: LogFunction;
error: LogFunction;
warn: LogFunction;
info: LogFunction;
debug: LogFunction;
trace: LogFunction;
}
export declare const ConsoleLogger: Logger;
export declare class ScopedLogger implements Logger {
private prefixes;
constructor(...prefixes: string[]);
private getPrefixesString;
extendScope(prefix: string): this;
fatal: (...args: any[]) => void;
error: (...args: any[]) => void;
warn: (...args: any[]) => void;
info: (...args: any[]) => void;
debug: (...args: any[]) => void;
trace: (...args: any[]) => void;
}