Module logging

Module logging 

Source
Expand description

MCP Logging Protocol Types

This module defines types for logging in MCP.

Structs§

LoggingMessageNotification
Complete logging message notification (per MCP spec)
LoggingMessageParams
Parameters for notifications/message logging (per MCP spec)
SetLevelParams
Parameters for logging/setLevel request (per MCP spec)
SetLevelRequest
Complete logging/setLevel request (matches TypeScript SetLevelRequest interface)

Enums§

LoggingLevel
Logging levels (per MCP spec) Maps to syslog message severities as specified in RFC-5424

Traits§

HasLogFormat
Trait for log message formatting and data
HasLogLevel
Trait for logging level configuration
HasLogTransport
Trait for logging transport and delivery
HasLoggingMetadata
Trait for logging metadata (method, logger name)
LoggerDefinition
Complete MCP Logger Creation - Build structured logging systems with level control.

Type Aliases§

LogLevel
Type alias for compatibility (per MCP spec)