Struct cursive_core::logger::CursiveLogger
source · pub struct CursiveLogger;
Expand description
Saves all log records in a global deque.
Uses a DebugView
to access it.
§Examples
Set log levels from env vars
logger::set_filter_levels_from_env();
logger::init();
Set log levels explicitly.
logger::set_internal_filter_level(LevelFilter::Warn);
logger::set_external_filter_level(LevelFilter::Debug);
logger::init();
Trait Implementations§
source§impl Log for CursiveLogger
impl Log for CursiveLogger
Auto Trait Implementations§
impl Freeze for CursiveLogger
impl RefUnwindSafe for CursiveLogger
impl Send for CursiveLogger
impl Sync for CursiveLogger
impl Unpin for CursiveLogger
impl UnwindSafe for CursiveLogger
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