/** * Logger utility for SAP MCP Server * * Provides structured logging with: * - Configurable log levels * - JSON or pretty format * - File output support * - Timestamp and context */ /** * Type alias for log level values used by the SAP MCP runtime. */ export type LogLevel = 'debug' | 'info' | 'warn' | 'error'; /** * Type alias for log format values used by the SAP MCP runtime. */ export type LogFormat = 'json' | 'pretty'; /** * Contract describing log options data used by the SAP MCP runtime. */ export interface LogOptions { level?: LogLevel; format?: LogFormat; file?: string; } /** * @name redactSensitiveString * @description Redacts URL query secrets and obvious inline secret assignments before writing logs. */ export declare function redactSensitiveString(value: string): string; /** * Initialize logger with options */ export declare function initLogger(options?: LogOptions): void; /** * Logger instance */ export declare const logger: { debug(message: string, data?: unknown): void; info(message: string, data?: unknown): void; warn(message: string, data?: unknown): void; error(message: string, data?: unknown): void; /** * Log startup banner */ startup(config: { mode: string; rpcUrl: string; programId: string; version?: string; }): void; }; /** * Set log level dynamically */ export declare function setLogLevel(level: LogLevel): void; /** * Set log format dynamically */ export declare function setLogFormat(format: LogFormat): void; /** * Set log file dynamically */ export declare function setLogFile(file: string | undefined): void; /** * Get current logger configuration */ export declare function getLoggerConfig(): LogOptions; //# sourceMappingURL=logger.d.ts.map