Enum simplelog::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
ErrorThe "error" level.
Designates very serious errors.
WarnThe "warn" level.
Designates hazardous situations.
InfoThe "info" level.
Designates useful information.
DebugThe "debug" level.
Designates lower priority information.
TraceThe "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 Display for Level[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl PartialEq<Level> for Level[src]
fn eq(&self, other: &Level) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl PartialEq<LevelFilter> for Level[src]
fn eq(&self, other: &LevelFilter) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
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