Trait ExtLogger

Source
pub trait ExtLogger: Logger {
    // Required methods
    fn as_logger(self: Box<Self>) -> Box<dyn Logger>;
    fn config(&self) -> Option<&LogConfig> β“˜;
    fn level_filter(&self) -> LogLevelFilter;
}
Available on crate feature dep_log only.
Expand description

🌐 Extension trait providing additional methods for Loggers.

Required Methods§

Source

fn as_logger(self: Box<Self>) -> Box<dyn Logger>

Available on crate feature alloc only.

Returns the logger as a Logger trait object.

Source

fn config(&self) -> Option<&LogConfig> β“˜

Returns a reference of the configuration.

Source

fn level_filter(&self) -> LogLevelFilter

Returns the level filter for this logger.

Implementors§