Struct basic_logger::BasicLogger
source · [−]pub struct BasicLogger { /* private fields */ }Expand description
Implements log and a set of builder methods for configuration.
Use the “builder” methods on this struct to configure the logger, then call [init] to initialize the actual logger.
Implementations
sourceimpl BasicLogger
impl BasicLogger
sourcepub fn with_level(self, level: LevelFilter) -> Self
pub fn with_level(self, level: LevelFilter) -> Self
Set the ‘default’ log level.
sourcepub fn init(self) -> Result<(), SetLoggerError>
pub fn init(self) -> Result<(), SetLoggerError>
Initialize the actual logger.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BasicLogger
impl Send for BasicLogger
impl Sync for BasicLogger
impl Unpin for BasicLogger
impl UnwindSafe for BasicLogger
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