System Configuration

Copy Markdown View Source

Logging

GenMCP uses telemetry for logging. It does not log anything by default to avoid polluting your logs.

To enable the default logger, you can call GenMCP.attach_default_logger/0 in your application start callback:

def start(_type, _args) do
  GenMCP.attach_default_logger()
  # ...
end

See GenMCP.attach_default_logger/1 for configuration options (filtering by level or prefix).

For a list of all telemetry events emitted by the library, see GenMCP.TelemetryLogger.