pub enum Level {
Emergency,
Alert,
Critical,
Error,
Warning,
Notice,
Informational,
Debug,
}
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 log
s 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
Emergency
Alert
Critical
Error
Warning
Notice
Informational
Debug
Implementations
Trait Implementations
sourceimpl Into<LevelFilter> for Level
impl Into<LevelFilter> for Level
sourcefn into(self) -> LogLevelFilter
fn into(self) -> LogLevelFilter
Allow for Into conversion from Rust’s LogLevelFilter
impl Copy for Level
Auto Trait Implementations
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more