UNPKG

@wgtechlabs/log-engine

Version:

A lightweight, security-first logging utility with automatic data redaction for Node.js applications - the first logging library with built-in PII protection.

42 lines 1.47 kB
/** * Logger configuration management * Handles logger settings and configuration updates */ import { LoggerConfig } from '../types'; /** * Configuration manager for logger settings * Handles configuration validation, updates, and backward compatibility */ export declare class LoggerConfigManager { private config; constructor(); /** * Get current configuration * @returns Current logger configuration */ getConfig(): LoggerConfig; /** * Updates logger configuration with new settings * Merges provided config with existing settings (partial update) * Supports backwards compatibility by mapping level to mode with deprecation warnings * @param config - Partial configuration object to apply */ updateConfig(config: Partial<LoggerConfig>): void; /** * Handle legacy level-based configuration with deprecation warnings * @param config - Configuration containing legacy level property */ private handleLegacyLevelConfig; /** * Map legacy LogLevel values to LogMode values * @param levelValue - Legacy level value * @returns Corresponding LogMode or undefined if invalid */ private mapLevelToMode; /** * Create deprecation warning message using LogFormatter * Outputs formatted deprecation warning messages to console */ private createDeprecationWarning; } //# sourceMappingURL=config.d.ts.map