pub enum Level {
Emergency = 0,
Alert = 1,
Critical = 2,
Error = 3,
Warning = 4,
Notice = 5,
Informational = 6,
Debug = 7,
}Expand description
GELF’s representation of an error level
GELF’s error levels are equivalent to syslog’s severity information (specified in RFC 5424)
The levels dont match logs levels, but (lossy) conversion methods
are provided. These methods follow this conversion table:
| GELF / Syslog | Rust |
|---|---|
| Emergency (0) | Error (1) |
| Alert (1) | Error (1) |
| Critical (2) | Error (1) |
| Error (3) | Error (1) |
| Warning (4) | Warn (2) |
| Notice (5) | Info (3) |
| Informational (6) | Info (3) |
| Debug (7) | Debug (4) |
| Debug (7) | Trace (5) |
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Level
impl<'de> Deserialize<'de> for Level
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Into<LevelFilter> for Level
impl Into<LevelFilter> for Level
Source§fn into(self) -> LogLevelFilter
fn into(self) -> LogLevelFilter
Allow for Into conversion from Rust’s LogLevelFilter
impl Copy for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnsafeUnpin for Level
impl UnwindSafe for Level
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