Skip to main content

TDLogger

Trait TDLogger 

Source
pub trait TDLogger: Send + Sync {
    // Required method
    fn print(&self, message: &str);
}
Expand description

A destination for SDK diagnostic messages.

print may be called concurrently from multiple threads. Panics inside a custom logger are contained so logging can never interrupt event delivery.

Required Methods§

Source

fn print(&self, message: &str)

Receive one formatted diagnostic line (trailing newline included).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§