pub struct LoggingMessageNotification {
pub method: String,
pub params: LoggingMessageNotificationParams,
}Deprecated per SEP-2577 (2026-07-28). Replacement: log to stderr for stdio transports or use OpenTelemetry. Per-request log level opt-in lives on RequestMetaObject.log_level. Earliest removal: first release on/after 2027-07-28.
Expand description
Method: “notifications/message”.
Deprecated per SEP-2577 — the whole Logging surface (this
notification, the per-request _meta logLevel opt-in, and the
LoggingLevel enum) is deprecated. Migrate to stderr (stdio) or
OpenTelemetry. Functional through the migration window.
Fields§
§method: StringDeprecated per SEP-2577 (2026-07-28). Replacement: log to stderr for stdio transports or use OpenTelemetry. Per-request log level opt-in lives on RequestMetaObject.log_level. Earliest removal: first release on/after 2027-07-28.
Method name (always “notifications/message”)
params: LoggingMessageNotificationParamsDeprecated per SEP-2577 (2026-07-28). Replacement: log to stderr for stdio transports or use OpenTelemetry. Per-request log level opt-in lives on RequestMetaObject.log_level. Earliest removal: first release on/after 2027-07-28.
Logging parameters
Implementations§
Source§impl LoggingMessageNotification
impl LoggingMessageNotification
pub fn new(level: LoggingLevel, data: Value) -> LoggingMessageNotification
pub fn with_logger( self, logger: impl Into<String>, ) -> LoggingMessageNotification
pub fn with_meta( self, meta: HashMap<String, Value>, ) -> LoggingMessageNotification
Trait Implementations§
Source§impl Clone for LoggingMessageNotification
impl Clone for LoggingMessageNotification
Source§fn clone(&self) -> LoggingMessageNotification
fn clone(&self) -> LoggingMessageNotification
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LoggingMessageNotification
impl Debug for LoggingMessageNotification
Source§impl<'de> Deserialize<'de> for LoggingMessageNotification
impl<'de> Deserialize<'de> for LoggingMessageNotification
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LoggingMessageNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LoggingMessageNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl LoggingMessageNotificationTrait for LoggingMessageNotification
impl LoggingMessageNotificationTrait for LoggingMessageNotification
Source§fn method_string(&self) -> &str
fn method_string(&self) -> &str
Deprecated per SEP-2577 (2026-07-28). Replacement: stderr (stdio) or OpenTelemetry, plus per-request log-level opt-in. Earliest removal: first release on/after 2027-07-28.