Enum stakker::LogLevel [−][src]
#[repr(u32)] #[non_exhaustive] pub enum LogLevel { Trace, Debug, Info, Warn, Error, Off, Audit, Open, Close, }
Levels for logging
Variants (Non-exhaustive)
Tracing (very low priority or verbose logging)
Debugging (low priority logging)
Informational logging
Warnings
Errors
Logging level used to disable logging of severity-based logging levels. Anything logged at this level will be ignored.
Audit-level log-records are sets of key-value pairs that are intended for machine processing. The formatted log-message should be a simple record tag, with all the variable data in key-value pairs. This corresponds to trace events in OpenTelemetry, or what are called ‘metrics’ in some other systems.
Span open. For an actor, this means actor startup. The
formatted text contains the name of the object, e.g. the actor
name. If the parent logging-ID is known, it is passed as a
parent
key-value pair.
Span close. For an actor, this means actor termination. The
formatted text may give a description of why the span closed
if there was a problem. In case of actor failure, one of
these presence key-values will be added: failed
, dropped
or killed
.
Implementations
impl LogLevel
[src]
pub fn name(self) -> &'static str
[src]
Return the name of the LogLevel
as a static string.
pub fn all_levels() -> &'static [LogLevel]
[src]
Return a slice containing all defined logging levels
Trait Implementations
impl Clone for LogLevel
[src]
impl Copy for LogLevel
[src]
impl Debug for LogLevel
[src]
impl Display for LogLevel
[src]
impl Eq for LogLevel
[src]
impl From<LogLevel> for LogFilter
[src]
fn from(level: LogLevel) -> Self
[src]
Convert a LogLevel
into a LogFilter
. Where a severity
level (LogLevel::Trace
to LogLevel::Error
) is passed,
all higher severity levels are also enabled. Where
LogLevel::Open
or LogLevel::Close
is passed, the other
is also enabled. LogLevel::Audit
only enables itself.
LogLevel::Off
gives no levels enabled.
impl FromStr for LogLevel
[src]
type Err = LogLevelError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<LogLevel, LogLevelError>
[src]
This does a case-insensitive match to the level names as
returned by LogLevel::name
impl PartialEq<LogLevel> for LogLevel
[src]
fn eq(&self, other: &LogLevel) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for LogLevel
[src]
impl StructuralPartialEq for LogLevel
[src]
Auto Trait Implementations
impl RefUnwindSafe for LogLevel
impl Send for LogLevel
impl Sync for LogLevel
impl Unpin for LogLevel
impl UnwindSafe for LogLevel
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Any + Clone,
[src]
T: Any + Clone,
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.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,