# Function createToolLogger

MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports

- createToolLogger(
  parentLogger: ILogger,
  toolName: string,
  requestId?: string,
  ): ILogger

  Creates a child logger for a specific tool execution.

  #### Parameters

  - parentLogger: ILogger

    The parent logger instance

  - toolName: string

    Name of the tool being executed

  - `Optional` requestId: string

    Optional request ID for tracing

  #### Returns ILogger

  A child logger with tool context

  - Defined in packages/nexus-agents/src/mcp/middleware/logging.ts:53