pub enum LogLevel {
ALL,
DEBUG,
DISABLED,
ERROR,
FATAL,
INFO,
NONE,
TRACE,
VERBOSE,
WARNING,
}Expand description
An enumeration of the different levels that a log message can have. Each variant of the enumeration represents a different level of importance.
Variants§
ALL
The log level is set to all.
DEBUG
The log level is set to debug.
DISABLED
The log level is set to disabled.
ERROR
The log level is set to error.
FATAL
The log level is set to fatal.
INFO
The log level is set to info.
NONE
The log level is set to none.
TRACE
The log level is set to trace.
VERBOSE
The log level is set to verbose.
WARNING
The log level is set to warning.
Trait Implementations§
source§impl Display for LogLevel
impl Display for LogLevel
source§fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Implements LogLevel to display the log level as a string.
It allows the LogLevel enumeration to be used with the write! and print! macros.
It provides a human-readable string representation of the variant, that will be used when displaying the log message.
source§impl PartialEq for LogLevel
impl PartialEq for LogLevel
source§impl PartialOrd for LogLevel
impl PartialOrd for LogLevel
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl StructuralPartialEq for LogLevel
Auto Trait Implementations§
impl RefUnwindSafe for LogLevel
impl Send for LogLevel
impl Sync for LogLevel
impl Unpin for LogLevel
impl UnwindSafe for LogLevel
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