Enum flexi_logger::Level
[−]
[src]
#[repr(usize)]pub enum Level { Error, Warn, Info, Debug, Trace, }
An enum representing the available verbosity levels of the logger.
Typical usage includes: checking if a certain Level
is enabled with
log_enabled!
, specifying the Level
of
log!
, and comparing a Level
directly to a
LevelFilter
.
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 Level
[src]
fn max() -> Level
[src]
Returns the most verbose logging level.
fn to_level_filter(&self) -> LevelFilter
[src]
Converts the Level
to the equivalent LevelFilter
.
Trait Implementations
impl Ord for Level
[src]
impl Copy for Level
[src]
impl Hash for Level
[src]
impl Clone for Level
[src]
fn clone(&self) -> Level
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Level
[src]
impl PartialEq<LevelFilter> for Level
[src]
fn eq(&self, other: &LevelFilter) -> bool
[src]
impl PartialEq<Level> for Level
[src]
impl FromStr for Level
[src]
impl Debug for Level
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl Display for Level
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more