/// Splits this legacy value into a severity and an optional verbosity.
Splits this legacy value into a severity and an optional verbosity.
Splits this legacy value into a severity and an optional verbosity .
pub fn for_structured(self) -> (Severity, Option<i8>) {
        match self {
            LegacySeverity::Trace => (Severity::Trace, None),
            LegacySeverity::Debug => (Severity::Debug, None),
            LegacySeverity::Info => (Severity::Info, None),
            LegacySeverity::Warn => (Severity::Warn, None),
            LegacySeverity::Error => (Severity::Error, None),
            LegacySeverity::Fatal => (Severity::Fatal, None),
            LegacySeverity::Verbose(v) => (Severity::Debug, Some(v)),
        }
    }
pub fn for_structured ( self ) -> ( Severity , Option < i8 > ) { match self { LegacySeverity :: Trace => ( Severity :: Trace , None ) , LegacySeverity :: Debug => ( Severity :: Debug , None ) , LegacySeverity :: Info => ( Severity :: Info , None ) , LegacySeverity :: Warn => ( Severity :: Warn , None ) , LegacySeverity :: Error => ( Severity :: Error , None ) , LegacySeverity :: Fatal => ( Severity :: Fatal , None ) , LegacySeverity :: Verbose ( v ) => ( Severity :: Debug , Some ( v ) ) , } }
Splits this legacy value into a severity and an optional verbosity.
Splits this legacy value into a severity and an optional verbosity .
self