Enum log::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
The “error” level.
Designates very serious errors.
The “warn” level.
Designates hazardous situations.
The “info” level.
Designates useful information.
The “debug” level.
Designates lower priority information.
The “trace” level.
Designates very low priority, often extremely verbose, information.
Implementations
impl Level[src]
impl Level[src]pub fn max() -> Level[src]
Returns the most verbose logging level.
pub fn to_level_filter(&self) -> LevelFilter[src]
Converts the Level to the equivalent LevelFilter.
pub fn as_str(&self) -> &'static str[src]
Returns the string representation of the Level.
This returns the same string as the fmt::Display implementation.
Trait Implementations
impl Clone for Level[src]
impl Clone for Level[src]fn clone(&self) -> Level[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl PartialEq<Level> for LevelFilter[src]
impl PartialEq<Level> for LevelFilter[src]impl PartialEq<LevelFilter> for Level[src]
impl PartialEq<LevelFilter> for Level[src]fn eq(&self, other: &LevelFilter) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialOrd<Level> for Level[src]
impl PartialOrd<Level> for Level[src]impl PartialOrd<Level> for LevelFilter[src]
impl PartialOrd<Level> for LevelFilter[src]impl PartialOrd<LevelFilter> for Level[src]
impl PartialOrd<LevelFilter> for Level[src]