Skip to main content

LoggingPlugin

Trait LoggingPlugin 

Source
pub trait LoggingPlugin: Send + Sync {
    // Required methods
    fn log(
        &self,
        level: LogLevel,
        participant: [u8; 16],
        category: &str,
        message: &str,
    );
    fn plugin_class_id(&self) -> &str;
}
Expand description

Logging plugin (spec §8.6.2.1).

Required Methods§

Source

fn log( &self, level: LogLevel, participant: [u8; 16], category: &str, message: &str, )

Log a security event.

Spec §8.6.2.1.1 log. participant identifies the affected participant (GUID bytes, 16 octets). category is a plugin-specific string (“auth.handshake.failed” etc.).

Source

fn plugin_class_id(&self) -> &str

Plugin class id (e.g. “DDS:Logging:DDS_LogTopic” for the spec-intended LogTopic dispatch).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl LoggingPlugin for MockLoggingPlugin

Available on crate feature std only.