Enum slog::FilterLevel
[−]
[src]
#[repr(usize)]pub enum FilterLevel { Off, Critical, Error, Warning, Info, Debug, Trace, }
Logging filtering level
Variants
OffLog nothing
CriticalLog critical level only
ErrorLog only error level and above
WarningLog only warning level and above
InfoLog only info level and above
DebugLog only debug level and above
TraceLog everything
Methods
impl FilterLevel[src]
fn as_usize(&self) -> usize
Convert to usize value
Off is 0, and Trace 6
fn from_usize(u: usize) -> Option<FilterLevel>
Get a FilterLevel from an usize
This complements as_usize
fn max() -> Self
Maximum logging level (log everything)
fn min() -> Self
Minimum logging level (log nothing)
Trait Implementations
impl Copy for FilterLevel[src]
impl Clone for FilterLevel[src]
fn clone(&self) -> FilterLevel
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
impl Debug for FilterLevel[src]
impl Eq for FilterLevel[src]
impl PartialEq for FilterLevel[src]
fn eq(&self, __arg_0: &FilterLevel) -> bool
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
This method tests for !=.
impl Ord for FilterLevel[src]
fn cmp(&self, __arg_0: &FilterLevel) -> Ordering
This method returns an Ordering between self and other. Read more
impl PartialOrd for FilterLevel[src]
fn partial_cmp(&self, __arg_0: &FilterLevel) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more