UNPKG

cross-log

Version:

A universal logging package that works in both browser and Node.js environments with environment variable configuration

34 lines 832 B
/** * Configuration manager with environment-based defaults */ import { LoggerConfig, Environment } from './types'; export declare class ConfigManager { private config; private environment; constructor(initialConfig?: Partial<LoggerConfig>); /** * Get the current configuration */ getConfig(): LoggerConfig; /** * Update configuration */ updateConfig(newConfig: Partial<LoggerConfig>): void; /** * Merge user config with smart defaults */ private mergeWithDefaults; /** * Get environment configuration */ private getEnvConfig; /** * Get default colors enabled setting */ private getDefaultColorsEnabled; /** * Get environment information */ getEnvironment(): Environment; } //# sourceMappingURL=config.d.ts.map