pub enum Severity {
Trace,
Debug,
Info,
Warning,
Error,
Critical,
}Expand description
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§
Implementations§
Source§impl Severity
impl Severity
Sourcepub fn set_level_filter<D>(&self, drain: D) -> LevelFilter<D>where
D: Drain,
pub fn set_level_filter<D>(&self, drain: D) -> LevelFilter<D>where
D: Drain,
Sets LevelFilter to drain.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Severity
impl<'de> Deserialize<'de> for Severity
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Severity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Severity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Severity
impl Ord for Severity
Source§impl PartialOrd for Severity
impl PartialOrd for Severity
Source§impl Serialize for Severity
impl Serialize for Severity
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Severity
impl Eq for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations§
impl Freeze for Severity
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnwindSafe for Severity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more