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 Logger
s.
Required Methods§
Sourcefn as_logger(self: Box<Self>) -> Box<dyn Logger>
Available on crate feature alloc
only.
fn as_logger(self: Box<Self>) -> Box<dyn Logger>
alloc
only.Returns the logger as a Logger
trait object.
Sourcefn level_filter(&self) -> LogLevelFilter
fn level_filter(&self) -> LogLevelFilter
Returns the level filter for this logger.