/** * Logging utilities for POLARIS framework */ export declare enum LogLevel { DEBUG = 0, INFO = 1, WARN = 2, ERROR = 3 } /** * Logger class for structured logging */ export declare class Logger { private name; private level; constructor(name: string, level?: LogLevel); /** * Log a debug message */ debug(message: string, data?: any): void; /** * Log an info message */ info(message: string, data?: any): void; /** * Log a warning message */ warn(message: string, data?: any): void; /** * Log an error message */ error(message: string, error?: Error | any): void; /** * Log an error message with safe sanitization */ errorSafe(message: string, error?: Error | any): void; /** * Create a child logger */ createChild(name: string): Logger; /** * Set the logging level */ setLevel(level: LogLevel): void; /** * Get the current logging level */ getLevel(): LogLevel; /** * Check if a level is enabled */ isLevelEnabled(level: LogLevel): boolean; /** * Sanitize error objects to remove sensitive data and reduce verbosity */ private sanitizeError; /** * Sanitize objects to mask sensitive data */ private sanitizeObject; /** * Check if a string contains sensitive data (API keys, tokens, etc.) */ private containsSensitiveData; /** * Mask sensitive values while keeping some context */ private maskSensitiveValue; /** * Mask sensitive parts of URLs */ private maskSensitiveUrl; private log; } /** * Global logger instance */ export declare const logger: Logger; /** * Performance measurement utilities */ export declare class PerformanceLogger { private static measurements; /** * Start measuring performance for a given operation */ static start(operationName: string): void; /** * End measurement and log the duration */ static end(operationName: string, logger?: Logger): number; /** * Measure the duration of an async function */ static measure(operationName: string, fn: () => Promise, logger?: Logger): Promise<{ result: T; duration: number; }>; /** * Clear all measurements */ static clear(): void; } //# sourceMappingURL=logger.d.ts.map