Enum slog::Level
[−]
[src]
pub enum Level { Critical, Error, Warning, Info, Debug, Trace, }
Logging level
Variants
Critical
Critical
Error
Error
Warning
Warning
Info
Info
Debug
Debug
Trace
Trace
Methods
impl Level
[src]
fn as_short_str(&self) -> &'static str
Convert to short string
Currently a 4 char string.
fn as_int(&self) -> i32
Cast Level
to ordering integer, where
Critical
is 0, and Trace
is 5
impl Level
[src]
fn is_at_least(&self, level: Self) -> bool
Returns true if self
is at least level
logging level
Trait Implementations
impl Debug for Level
[src]
impl Clone for Level
[src]
fn clone(&self) -> Level
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more