Skip to main content

Logger

Trait Logger 

Source
pub trait Logger: RuntimeAdapter {
    // Required methods
    fn info(&self, message: &str);
    fn debug(&self, message: &str);
    fn warn(&self, message: &str);
    fn error(&self, message: &str);
}
Expand description

Logging trait - enables ctx.log() accessor

Required Methods§

Source

fn info(&self, message: &str)

Source

fn debug(&self, message: &str)

Source

fn warn(&self, message: &str)

Source

fn error(&self, message: &str)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§