[][src]Enum log::LogLevel

#[repr(usize)]
pub enum LogLevel {
    Error,
    Warn,
    Info,
    Debug,
    Trace,
}

An enum representing the available verbosity levels of the logging framework

A LogLevel may be compared directly to a LogLevelFilter.

Variants

Error

The "error" level.

Designates very serious errors.

Warn

The "warn" level.

Designates hazardous situations.

Info

The "info" level.

Designates useful information.

Debug

The "debug" level.

Designates lower priority information.

Trace

The "trace" level.

Designates very low priority, often extremely verbose, information.

Methods

impl LogLevel[src]

pub fn max() -> LogLevel[src]

Returns the most verbose logging level.

pub fn to_log_level_filter(&self) -> LogLevelFilter[src]

Converts the LogLevel to the equivalent LogLevelFilter.

Trait Implementations

impl Eq for LogLevel[src]

impl Clone for LogLevel[src]

impl PartialOrd<LogLevel> for LogLevel[src]

impl PartialOrd<LogLevelFilter> for LogLevel[src]

impl PartialOrd<LogLevel> for LogLevelFilter[src]

impl PartialEq<LogLevel> for LogLevel[src]

impl PartialEq<LogLevelFilter> for LogLevel[src]

impl PartialEq<LogLevel> for LogLevelFilter[src]

impl Ord for LogLevel[src]

impl Copy for LogLevel[src]

impl Debug for LogLevel[src]

impl Display for LogLevel[src]

impl FromStr for LogLevel[src]

type Err = ()

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Send for LogLevel

impl Unpin for LogLevel

impl Sync for LogLevel

impl UnwindSafe for LogLevel

impl RefUnwindSafe for LogLevel

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]