Enum slog::FilterLevel [] [src]

pub enum FilterLevel {
    Off,
    Critical,
    Error,
    Warning,
    Info,
    Debug,
    Trace,
}

Logging filtering level

Variants

Off

Log nothing

Critical

Log critical level only

Error

Log only error level and above

Warning

Log only warning level and above

Info

Log only info level and above

Debug

Log only debug level and above

Trace

Log 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 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) -> bool
1.0.0

This method tests less than (for self and other) and is used by the < operator. Read more

fn le(&self, other: &Rhs) -> bool
1.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) -> bool
1.0.0

This method tests greater than (for self and other) and is used by the > operator. Read more

fn ge(&self, other: &Rhs) -> bool
1.0.0

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for FilterLevel
[src]

fn cmp(&self, __arg_0: &FilterLevel) -> Ordering

This method returns an Ordering between self and other. Read more

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) -> bool
1.0.0

This method tests for !=.

impl Eq for FilterLevel
[src]

impl Debug for FilterLevel
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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 Copy for FilterLevel
[src]

impl FromStr for FilterLevel
[src]

type Err = ()

The associated error which can be returned from parsing.

fn from_str(level: &str) -> Result<FilterLevel()>

Parses a string s to return a value of this type. Read more