pub trait ModuleLogger {
// Required methods
fn error(&self, msg: &str);
fn warn(&self, msg: &str);
fn info(&self, msg: &str);
fn debug(&self, msg: &str);
fn trace(&self, msg: &str);
// Provided method
fn log(&self, msg: &str) { ... }
}Expand description
Module logging interface that can be used by dynamic modules