pub struct RichLogger { /* private fields */ }Expand description
Rich-style logger for the log crate.
Implementations§
Source§impl RichLogger
impl RichLogger
Sourcepub fn level(self, level: LevelFilter) -> Self
pub fn level(self, level: LevelFilter) -> Self
Set the minimum log level.
Sourcepub fn omit_repeated_times(self, omit: bool) -> Self
pub fn omit_repeated_times(self, omit: bool) -> Self
Omit repeated timestamps.
Sourcepub fn show_level(self, show: bool) -> Self
pub fn show_level(self, show: bool) -> Self
Enable or disable log levels.
Sourcepub fn enable_link_path(self, enable: bool) -> Self
pub fn enable_link_path(self, enable: bool) -> Self
Enable terminal hyperlinks for paths.
Sourcepub fn time_format(self, format: &str) -> Self
pub fn time_format(self, format: &str) -> Self
Override time format.
Sourcepub fn init(self) -> Result<(), SetLoggerError>
pub fn init(self) -> Result<(), SetLoggerError>
Install as the global logger.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RichLogger
impl RefUnwindSafe for RichLogger
impl Send for RichLogger
impl Sync for RichLogger
impl Unpin for RichLogger
impl UnwindSafe for RichLogger
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