pub struct Logger { /* private fields */ }
Expand description
The logger.
The defaults are:
- Log to
stdepretty_env_logger/0.1.1/prettyrr
- Log at the info level and higher.
- Use the default theme (see the
Theme
type for details). - Use color iff
stderr
is a TTY
Implementations§
Source§impl Logger
impl Logger
Sourcepub fn new(
destination: Destination,
level: LogLevelFilter,
theme: Theme,
) -> Logger
pub fn new( destination: Destination, level: LogLevelFilter, theme: Theme, ) -> Logger
Creates a new instance of Logger.
Sourcepub fn set_logger(self) -> Result<(), SetLoggerError>
pub fn set_logger(self) -> Result<(), SetLoggerError>
Sets this logger as the global logger.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Logger
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnwindSafe for Logger
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