pub use log::{debug, error, info, set_logger, set_max_level, trace, warn, LevelFilter}; use log::{Metadata, Record}; pub struct Log; impl log::Log for Log { fn enabled(&self, _metadata: &Metadata) -> bool { true } fn log(&self, record: &Record) { if self.enabled(record.metadata()) { println!("{} - {}", record.level(), record.args()); } } fn flush(&self) {} }