@xylabs/logger
Version:
XYLabs Logger Library
17 lines • 708 B
TypeScript
import type { Logger } from './LevelLogger.ts';
/**
* A logger that does not log anything.
* This is useful when you want to disable logging
* like when running unit tests or in silent mode.
* It implements the `Logger` interface but all methods
* are no-op functions.
*/
export declare class SilentLogger implements Logger {
readonly debug: (..._data: unknown[]) => undefined;
readonly error: (..._data: unknown[]) => undefined;
readonly info: (..._data: unknown[]) => undefined;
readonly log: (..._data: unknown[]) => undefined;
readonly trace: (..._data: unknown[]) => undefined;
readonly warn: (..._data: unknown[]) => undefined;
}
//# sourceMappingURL=SilentLogger.d.ts.map