pub enum LogLevel {
Off,
Error,
Warn,
Info,
Debug,
}Expand description
Platform log verbosity, declared via rusm.toml [log] level. Ordered, cumulative:
a configured level shows every event at or below it. Each lifecycle event maps to a
distinct level — Error: a crash (a trap / OOM); Warn: + a kill (or
cascade); Info: + a clean exit; Debug: + every spawn. So a restart reads
as a crash exit (Error) then a fresh spawn (Debug).
Variants§
Off
No platform logging (the default — zero hot-path cost).
Error
Crashes only (a guest trap / OOM).
Warn
- kills and link cascades.
Info
- clean (normal) exits — every process ending.
Debug
- every spawn — full lifecycle visibility.
Implementations§
Source§impl LogLevel
impl LogLevel
Sourcepub fn parse(s: &str) -> Self
pub fn parse(s: &str) -> Self
Parse a manifest string (off/error/warn/info/debug); anything else is
Off, so a typo silently quiets rather than crashes.
Sourcepub fn for_exit(reason: ExitReason) -> Self
pub fn for_exit(reason: ExitReason) -> Self
The level of a process exit — the single source of truth for both the gate
(which level shows it) and the colour: a crash is Error, a kill/cascade Warn,
a clean exit Info.
Trait Implementations§
impl Copy for LogLevel
impl Eq for LogLevel
Source§impl Ord for LogLevel
impl Ord for LogLevel
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 LogLevel
impl PartialOrd for LogLevel
impl StructuralPartialEq for LogLevel
Auto Trait Implementations§
impl Freeze for LogLevel
impl RefUnwindSafe for LogLevel
impl Send for LogLevel
impl Sync for LogLevel
impl Unpin for LogLevel
impl UnsafeUnpin for LogLevel
impl UnwindSafe for LogLevel
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