[−][src]Enum gelf::Level
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
Methods
impl Level
[src]
pub fn from_rust(level: LogLevel) -> Level
[src]
Get the GELF error level from given Rust error level
pub fn to_rust(self) -> LogLevel
[src]
Get the Rust error level from this GELF error level
Trait Implementations
impl Clone for Level
[src]
impl Copy for Level
[src]
impl Debug for Level
[src]
impl<'de> Deserialize<'de> for Level
[src]
fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl From<Level> for Level
[src]
impl From<f64> for Level
[src]
impl From<i64> for Level
[src]
impl Into<Level> for Level
[src]
impl Into<LevelFilter> for Level
[src]
fn into(self) -> LogLevelFilter
[src]
Allow for Into conversion from Rust's LogLevelFilter
impl<'_> Into<i8> for &'_ Level
[src]
impl PartialEq<Level> for Level
[src]
impl Serialize for Level
[src]
impl StructuralPartialEq for Level
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,