/** * Log module constants. * This file contains predefined log module constants for consistent usage across the codebase. */ /** * Log module constants for use with the logger. * These constants provide type-safe module identifiers for consistent logging. * * @example * ```typescript * import { LOG_MODULES } from './logger/log-modules.js'; * * logger.info('Server started', LOG_MODULES.SERVER); * logger.debug('Processing request', LOG_MODULES.GATEWAY, requestData); * * // For dynamic module names * logger.info('Dynamic module', LOG_MODULES.dynamic('MyCustomModule')); * ``` */ export declare const LOG_MODULES: { readonly SERVER: { module: string; }; readonly DEV_SERVER: { module: string; }; readonly RUNNER: { module: string; }; readonly CONFIG_MANAGER: { module: string; }; readonly CONFIG_LOADER: { module: string; }; readonly CONFIG_SAVER: { module: string; }; readonly CONFIG_CHANGES: { module: string; }; readonly SERVER_CONFIG_MANAGER: { module: string; }; readonly CONNECTION_MANAGER: { module: string; }; readonly HUB_MANAGER: { module: string; }; readonly SERVER_SELECTOR: { module: string; }; readonly GATEWAY: { module: string; }; readonly GATEWAY_SERVICE: { module: string; }; readonly HUB_TOOLS: { module: string; }; readonly SYSTEM_TOOL: { module: string; }; readonly TOOL_LIST: { module: string; }; readonly TOOL_LIST_GENERATOR: { module: string; }; readonly INITIALIZE_HANDLER: { module: string; }; readonly SYSTEM_TOOLS_HANDLER: { module: string; }; readonly RESOURCES_HANDLER: { module: string; }; readonly TOOLS_HANDLER: { module: string; }; readonly SEARCH: { module: string; }; readonly ERROR_HANDLER: { module: string; }; readonly COMMUNICATION: { module: string; }; readonly CONTEXT: { module: string; }; readonly WEBSOCKET: { module: string; }; readonly HTTP_TRANSPORT: { module: string; }; readonly STDIO_TRANSPORT: { module: string; }; readonly SSE_TRANSPORT: { module: string; }; readonly STREAMABLE_HTTP_LOCAL_TRANSPORT: { module: string; }; readonly PID_MANAGER: { module: string; }; readonly SERVER_API: { module: string; }; readonly MCP_STATUS: { module: string; }; readonly NOTIFICATIONS_MESSAGE: { module: string; }; readonly STDERR: { module: string; }; /** * Creates a dynamic log module for custom or runtime-generated module names. * Use this for server-specific logging or other dynamic contexts. * * @param moduleName - The dynamic module name * @returns A LogOptions object with the module name * * @example * ```typescript * logger.info('Server connected', LOG_MODULES.dynamic(serverId)); * ``` */ readonly dynamic: (moduleName: string) => { module: string; }; }; /** * Type representing the keys of LOG_MODULES. */ export type LogModuleKey = keyof Omit; /** * Type representing a log module object. */ export type LogModule = (typeof LOG_MODULES)[LogModuleKey]; //# sourceMappingURL=log-modules.d.ts.map