pub trait LoggerDefinition:
HasLoggingMetadata
+ HasLogLevel
+ HasLogFormat
+ HasLogTransport {
// Provided methods
fn to_message_notification(&self) -> LoggingMessageNotification { ... }
fn to_set_level_request(&self) -> SetLevelRequest { ... }
}Expand description
Complete MCP Logger Definition trait
This trait represents a complete, working MCP logger.
When you implement the required traits, you automatically get
LoggerDefinition for free via blanket implementation.
Provided Methods§
Sourcefn to_message_notification(&self) -> LoggingMessageNotification
fn to_message_notification(&self) -> LoggingMessageNotification
Convert this logger definition to a LoggingMessageNotification
Sourcefn to_set_level_request(&self) -> SetLevelRequest
fn to_set_level_request(&self) -> SetLevelRequest
Convert this logger definition to a SetLevelRequest