pub enum Level {
Off = 0,
Warn = 1,
Debug = 2,
}Expand description
Logger severity. Variants are ordered Off < Warn < Debug so a
call fires when its own level is <= the configured level.
Variants§
Off = 0
Warn = 1
Default. Real data-loss drops (cache/lock write failures, gix-discovery errors) surface without opt-in.
Debug = 2
Opt-in verbosity. Every Ok(None) hide path in a segment
emits a one-line diagnostic naming the gate that triggered.
Implementations§
Source§impl Level
impl Level
Sourcepub fn parse(s: &str) -> Option<Self>
pub fn parse(s: &str) -> Option<Self>
Parse the ENV_VAR string. Accepts warn → Warn, debug
/ trace / all → Debug, off / none / 0 → Off.
error and info are rejected on purpose: the 3-level ladder
has no Error slot, and silently collapsing error to warn
would ship LINESMITH_LOG=error users every warn-level line.
Trait Implementations§
Source§impl Ord for Level
impl Ord for Level
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Level
impl PartialOrd for Level
impl Copy for Level
impl Eq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnsafeUnpin for Level
impl UnwindSafe for Level
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.