kist
Version:
Lightweight Package Pipeline Processor with Plugin Architecture
16 lines • 623 B
TypeScript
export declare class Logger {
private static instance;
private logLevel;
private constructor();
static getInstance(logLevel?: "debug" | "info" | "warn" | "error"): Logger;
static resetInstance(): void;
private log;
private shouldLog;
logInfo(context: string, message: string): void;
logWarn(context: string, message: string): void;
logError(context: string, message: string, error?: unknown): void;
logDebug(context: string, message: string): void;
setLogLevel(level: "debug" | "info" | "warn" | "error"): void;
private formatError;
}
//# sourceMappingURL=Logger.d.ts.map