[][src]Enum sloggers::types::Severity

pub enum Severity {
    Trace,
    Debug,
    Info,
    Warning,
    Error,
    Critical,
}

The severity of a log record.

Examples

The default value:

use sloggers::types::Severity;

assert_eq!(Severity::default(), Severity::Info);

Notice

By default, slog disables trace level logging in debug builds, and trace and debug level logging in release builds. For enabling them, you need to specify some features (e.g, max_level_trace) to slog.

See slog's documentation for more details.

Variants

Trace
Debug
Info
Warning
Error
Critical

Implementations

impl Severity[src]

pub fn as_level(self) -> Level[src]

Converts Severity to Level.

pub fn set_level_filter<D: Drain>(self, drain: D) -> LevelFilter<D>[src]

Sets LevelFilter to drain.

Trait Implementations

impl Clone for Severity[src]

impl Copy for Severity[src]

impl Debug for Severity[src]

impl Default for Severity[src]

impl<'de> Deserialize<'de> for Severity[src]

impl Eq for Severity[src]

impl FromStr for Severity[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for Severity[src]

impl Ord for Severity[src]

impl PartialEq<Severity> for Severity[src]

impl PartialOrd<Severity> for Severity[src]

impl Serialize for Severity[src]

impl StructuralEq for Severity[src]

impl StructuralPartialEq for Severity[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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.