LoggerDefinition

Trait LoggerDefinition 

Source
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§

Source

fn to_message_notification(&self) -> LoggingMessageNotification

Convert this logger definition to a LoggingMessageNotification

Source

fn to_set_level_request(&self) -> SetLevelRequest

Convert this logger definition to a SetLevelRequest

Implementors§