/** * Logger utility for Chrome Control * Provides structured logging with different levels, timestamps, * and the ability to output to console and/or file */ export declare enum LogLevel { ERROR = 0, WARN = 1, INFO = 2, HTTP = 3, DEBUG = 4, TRACE = 5 } interface LoggerConfig { logLevel: LogLevel; logToConsole: boolean; logToFile: boolean; logFilePath?: string; colorize?: boolean; showTimestamp?: boolean; showLogLevel?: boolean; } /** * Logger class for consistent logging across the application */ export declare class Logger { private static instance; private config; private logStream; private logDir; private constructor(); /** * Get the singleton instance of the logger */ static getInstance(config?: Partial): Logger; /** * Update the logger configuration */ updateConfig(config: Partial): void; /** * Initialize or update the log file */ private initLogFile; /** * Format a log message with timestamp and level if enabled */ private formatMessage; /** * Add color to console output if enabled */ private colorize; /** * Write a log entry */ private log; /** * Log an error message */ error(message: string, ...args: any[]): void; /** * Log a warning message */ warn(message: string, ...args: any[]): void; /** * Log an info message */ info(message: string, ...args: any[]): void; /** * Log an HTTP message (requests/responses) */ http(message: string, ...args: any[]): void; /** * Log a debug message */ debug(message: string, ...args: any[]): void; /** * Log a trace message (most detailed level) */ trace(message: string, ...args: any[]): void; /** * Log a JSON object (useful for API requests/responses) */ json(level: LogLevel, obj: any, label?: string): void; /** * Log an error object with stack trace */ exception(error: Error | unknown, message?: string): void; /** * Log the start of an operation with timing */ startTimer(label: string): () => void; /** * Create a logger with prefixed messages */ createPrefixedLogger(prefix: string): Omit; /** * Close the logger and clean up resources */ close(): Promise; } export declare const logger: Logger; export declare function createLogger(moduleName: string): Omit; export declare function createRequestLogger(): { logRequest: (req: any) => void; logResponse: (res: any) => void; }; export declare function configureLoggerFromEnv(): void; export default logger; //# sourceMappingURL=logger.d.ts.map