pub struct Logger(_);
Expand description
The fully configured log4rs Logger which is appropriate
to use with the log::set_boxed_logger
function.
Implementations
sourceimpl Logger
impl Logger
sourcepub fn new_with_err_handler(
config: Config,
err_handler: Box<dyn Send + Sync + Fn(&Error)>
) -> Logger
pub fn new_with_err_handler(
config: Config,
err_handler: Box<dyn Send + Sync + Fn(&Error)>
) -> Logger
Create a new Logger
given a configuration and err handler.
sourcepub fn max_log_level(&self) -> LevelFilter
pub fn max_log_level(&self) -> LevelFilter
Set the max log level above which everything will be filtered.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl !UnwindSafe for Logger
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more