[][src]Enum stakker::LogLevel

#[repr(u32)]
#[non_exhaustive]pub enum LogLevel {
    Trace,
    Debug,
    Info,
    Warn,
    Error,
    Off,
    Audit,
    Open,
    Close,
}

Levels for logging

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trace

Tracing (very low priority or verbose logging)

Debug

Debugging (low priority logging)

Info

Informational logging

Warn

Warnings

Error

Errors

Off

Logging level used to disable logging of severity-based logging levels. Anything logged at this level will be ignored.

Audit

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.

Open

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.

Close

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]

impl StructuralEq for LogLevel[src]

impl StructuralPartialEq for LogLevel[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.