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, )

Ein Security-Event loggen.

Spec §8.6.2.1.1 log. participant identifiziert den betroffenen Teilnehmer (GUID-bytes, 16 octets). category ist ein plugin-spezifischer String (“auth.handshake.failed” etc.).

Source

fn plugin_class_id(&self) -> &str

Plugin-Class-Id (z.B. “DDS:Logging:DDS_LogTopic” fuer den Spec-vorgesehenen LogTopic-Dispatch).

Implementors§

Source§

impl LoggingPlugin for MockLoggingPlugin

Available on crate feature std only.