Enum slog::FilterLevel [] [src]

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

Logging filtering level

Variants

Log nothing

Log critical level only

Log only error level and above

Log only warning level and above

Log only info level and above

Log only debug level and above

Log everything

Methods

impl FilterLevel
[src]

Convert to usize value

Off is 0, and Trace 6

Get a FilterLevel from an usize

This complements as_usize

Maximum logging level (log everything)

Minimum logging level (log nothing)

Trait Implementations

impl Copy for FilterLevel
[src]

impl Clone for FilterLevel
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for FilterLevel
[src]

Formats the value using the given formatter.

impl Eq for FilterLevel
[src]

impl PartialEq for FilterLevel
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for FilterLevel
[src]

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

impl PartialOrd for FilterLevel
[src]

This method returns an ordering between self and other values if one exists. Read more

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

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

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

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

impl FromStr for FilterLevel
[src]

The associated error which can be returned from parsing.

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