Hermes.Logging (hermes_mcp v0.6.0)
Centralized logging for Hermes MCP client.
This module provides structured logging functions that automatically manage context and format logs appropriately based on log levels.
Summary
Functions
Log client events with structured format.
Log protocol messages with automatic formatting and context.
Log server events with structured format.
Log transport events with structured format.
Functions
Log client events with structured format.
Options
- metadata - Additional metadata including:
- :level - The log level (:debug, :info, :warning, :error, etc.)
Log protocol messages with automatic formatting and context.
Parameters
- direction - "incoming" or "outgoing"
- type - message type (e.g., "request", "response", "notification", "error")
- id - message ID (can be nil)
- data - the message content
- metadata - additional metadata to include with level option (:debug, :info, :warning, :error, etc.)
Log server events with structured format.
Options
- metadata - Additional metadata including:
- :level - The log level (:debug, :info, :warning, :error, etc.)
Log transport events with structured format.
Options
- metadata - Additional metadata including:
- :level - The log level (:debug, :info, :warning, :error, etc.)