pub struct BasicLogger { /* private fields */ }
Expand description
Implements log
and a set of builder methods used for configuration.
Use the builder methods on this struct to configure the logger, then call [init
] to initialize the actual logger.
Implementations§
Source§impl 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 Freeze for BasicLogger
impl RefUnwindSafe for BasicLogger
impl Send for BasicLogger
impl Sync for BasicLogger
impl Unpin for BasicLogger
impl UnwindSafe for BasicLogger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more