UNPKG

optivise

Version:

Optivise - The Ultimate Optimizely Development Assistant with AI-powered features, zero-config setup, and comprehensive development support

23 lines 837 B
/** * Logger Utility * Simple structured logging for Optivise */ import type { Logger } from '../types/index.js'; type LogLevel = 'debug' | 'info' | 'warn' | 'error'; declare class SimpleLogger implements Logger { private level; private readonly levelValues; constructor(level?: LogLevel); debug(message: string, meta?: Record<string, unknown>): void; info(message: string, meta?: Record<string, unknown>): void; warn(message: string, meta?: Record<string, unknown>): void; error(message: string, error?: Error, meta?: Record<string, unknown>): void; private log; private formatLogEntry; private redact; setLevel(level: LogLevel): void; getLevel(): LogLevel; } export { SimpleLogger }; export declare function createLogger(level?: LogLevel): Logger; //# sourceMappingURL=logger.d.ts.map