/** * Development mode logging setup. * This file contains development log initialization and management. */ import fs from 'fs'; import { LogRotator } from '../log-rotator.js'; import type { RotatorConfig } from '../log-rotator.js'; /** * Development logger configuration and setup. */ export declare class DevLogger { private logFileStream; private devLogRotator; /** * Get the current log file stream. */ get stream(): fs.WriteStream | null; /** * Get the dev log rotator (for testing only). * @internal */ get rotator(): LogRotator | null; /** * Enables development logging mode with file output and enhanced debugging. * * This method configures the logger to: * - Write all log output to a file in the logs/ directory * - Use timestamp-based log file naming (dev-server.YYYYMMDD_HHmmSSZZZ.log) * - Automatically clean up old log files (default: 7 days retention) * * @param rotatorConfig - Optional custom rotation configuration (default: 7 days retention) * @param onLogEnabled - Optional callback when log is enabled, receives the log file path */ enableDevLog(rotatorConfig?: RotatorConfig, onLogEnabled?: (logFilePath: string) => void): void; /** * Close the dev log file stream if open. */ close(): void; } //# sourceMappingURL=dev-logger.d.ts.map