Enum gelf::Level
[−]
[src]
pub enum Level { Emergency, Alert, Critical, Error, Warning, Notice, Informational, Debug, }
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
Methods
impl Level
[src]
fn from_rust(level: &LogLevel) -> Level
Get the GELF error level from given Rust error level
fn to_rust(&self) -> LogLevel
Get the Rust error level from this GELF error level
Trait Implementations
impl Debug for Level
[src]
impl Clone for Level
[src]
fn clone(&self) -> Level
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Level
[src]
impl Into<LogLevel> for Level
[src]
impl From<LogLevel> for Level
[src]
impl Into<LogLevelFilter> for Level
[src]
fn into(self) -> LogLevelFilter
Allow for Into conversion from Rust's LogLevelFilter