Enum flexi_logger::LogLevel
[−]
[src]
#[repr(usize)]pub enum LogLevel { Error, Warn, Info, Debug, Trace, }
An enum representing the available verbosity levels of the logging framework.
Typical usage includes: checking if a certain LogLevel
is enabled with
log_enabled!
, specifying the LogLevel
of
log!
, and comparing a LogLevel
directly to a
LogLevelFilter
.
Variants
Error
The "error" level.
Designates very serious errors.
Warn
The "warn" level.
Designates hazardous situations.
Info
The "info" level.
Designates useful information.
Debug
The "debug" level.
Designates lower priority information.
Trace
The "trace" level.
Designates very low priority, often extremely verbose, information.
Methods
impl LogLevel
[src]
fn max() -> LogLevel
Returns the most verbose logging level.
fn to_log_level_filter(&self) -> LogLevelFilter
Converts the LogLevel
to the equivalent LogLevelFilter
.
Trait Implementations
impl Debug for LogLevel
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Hash for LogLevel
[src]
impl Copy for LogLevel
[src]
impl Display for LogLevel
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more