Trait grass::Logger

source ·
pub trait Logger: Debug {
    // Required methods
    fn debug(&self, location: SpanLoc, message: &str);
    fn warn(&self, location: SpanLoc, message: &str);
}
Expand description

A trait to allow replacing logging mechanisms

Required Methods§

source

fn debug(&self, location: SpanLoc, message: &str)

Logs message from a @debug statement

source

fn warn(&self, location: SpanLoc, message: &str)

Logs message from a @warn statement

Implementors§