UNPKG

@nosana/kit

Version:

Nosana KIT

28 lines 851 B
export type LogLevel = 'none' | 'fatal' | 'error' | 'warn' | 'info' | 'debug' | 'trace'; export interface LoggerOptions { level?: LogLevel; prefix?: string; enabled?: boolean; } export declare class Logger { private static instance; level: LogLevel; prefix: string; enabled: boolean; private constructor(); static getInstance(options?: LoggerOptions): Logger; private shouldLog; private formatMessage; trace(message: string): void; debug(message: string): void; info(message: string): void; warn(message: string): void; error(message: string): void; fatal(message: string): void; child(bindings: Record<string, any>): Logger; setLevel(level: LogLevel): void; setPrefix(prefix: string): void; enable(): void; disable(): void; } //# sourceMappingURL=Logger.d.ts.map