pub struct Root { /* private fields */ }
Expand description
Configuration for the root logger.
Implementations§
source§impl Root
impl Root
sourcepub fn builder() -> RootBuilder
pub fn builder() -> RootBuilder
Creates a new RootBuilder
with no appenders.
sourcepub fn level(&self) -> LevelFilter
pub fn level(&self) -> LevelFilter
Returns the minimum level of log messages that the root logger will accept.
sourcepub fn appenders(&self) -> &[String]
pub fn appenders(&self) -> &[String]
Returns the list of names of appenders that will be attached to the root logger.
sourcepub fn set_level(&mut self, level: LevelFilter)
pub fn set_level(&mut self, level: LevelFilter)
Sets the minimum level of log messages that the root logger will accept.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Root
impl Send for Root
impl Sync for Root
impl Unpin for Root
impl UnwindSafe for Root
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