UNPKG

visilog

Version:

Stream browser console logs to files for LLM debugging. Zero-config setup with simple imports. No MCP required - just tell your LLM to read the log files.

36 lines 1.44 kB
import type { LoggerFactoryConfig, LoggerInstance, GlobalLoggerRegistry } from '../types'; /** * Enhanced Logger Factory that exceeds feedback expectations * Features: Smart auto-configuration, environment detection, graceful fallbacks, global registry */ export declare class LoggerFactory { private static registry; private static defaultLogger; private static environmentInfo; /** * Creates a logger with intelligent auto-configuration * Exceeds expectations with environment detection and smart defaults */ static createLogger(config?: LoggerFactoryConfig): LoggerInstance; /** * Gets environment-specific default configuration */ private static getEnvironmentDefaults; /** * Global logger registry implementation */ static getRegistry(): GlobalLoggerRegistry; /** * Waits for logger to be ready (connection established) */ static waitForLogger(name?: string, timeout?: number): Promise<LoggerInstance | null>; /** * Gets global logger with fallback creation */ static getGlobalLogger(): LoggerInstance; } export declare const createLogger: typeof LoggerFactory.createLogger; export declare const getGlobalLogger: typeof LoggerFactory.getGlobalLogger; export declare const waitForLogger: typeof LoggerFactory.waitForLogger; export declare const registry: GlobalLoggerRegistry; //# sourceMappingURL=logger-factory.d.ts.map