@tonk/keepsync
Version:
A reactive sync engine framework for use with Tonk apps
19 lines (18 loc) • 644 B
TypeScript
export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
declare class Logger {
private static instance;
private logLevel;
private constructor();
static getInstance(): Logger;
setLogLevel(level: LogLevel): void;
private getTimestamp;
private shouldLog;
debug(message: string, ...args: any[]): void;
info(message: string, ...args: any[]): void;
warn(message: string, ...args: any[]): void;
error(message: string | Error, ...args: any[]): void;
private formatObject;
debugWithContext(context: string, message: string, ...args: any[]): void;
}
export declare const logger: Logger;
export {};