Enum simplelog::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.

Methods

impl Level
[src]

[src]

Returns the most verbose logging level.

[src]

Converts the Level to the equivalent LevelFilter.

Trait Implementations

impl Display for Level
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq<Level> for Level
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<LevelFilter> for Level
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Clone for Level
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialOrd<LevelFilter> for Level
[src]

[src]

impl PartialOrd<Level> for Level
[src]

[src]

impl Hash for Level
[src]

[src]

impl FromStr for Level
[src]

[src]

impl Copy for Level
[src]

impl Eq for Level
[src]

impl Ord for Level
[src]

[src]

impl Debug for Level
[src]

[src]

Formats the value using the given formatter.