pub enum LogLevel {
Trace,
Debug,
Info,
Key,
Warn,
Error,
}Expand description
Log severity level for flow debug entries.
Ordered from least to most important: Trace < Debug < Info < Key < Warn < Error. Consumers can filter the author-forwardable stream with
level >= LogLevel::Key.
Variants§
Trace
Very high frequency, per-chunk / per-poll / per-retry hot-loop noise. Consumers MUST NOT persist these (drop or sample only).
Debug
Low-volume diagnostics. Persisting is optional / short-term only.
Info
Normal operational information. Persisting is optional.
Key
Key-node checkpoint the SDK author reviews when a consumer reports a bug. Consumers SHOULD persist these and forward them for troubleshooting.
Warn
Recoverable anomaly, misuse, or backpressure. Consumers SHOULD persist.
Error
Failure with full detail — a chunk/part upload or download failed, a task failed, an HTTP error response, a signing failure — or a caught panic. Consumers SHOULD persist these together with their full context.
Implementations§
Source§impl LogLevel
impl LogLevel
Sourcepub fn persist_recommended(&self) -> bool
pub fn persist_recommended(&self) -> bool
Returns whether consumers are recommended to persist entries at this
level. True for LogLevel::Key, LogLevel::Warn and
LogLevel::Error; false for the higher-frequency / lower-value
LogLevel::Trace, LogLevel::Debug and LogLevel::Info.
§Examples
use rusty_cat::api::LogLevel;
assert!(LogLevel::Error.persist_recommended());
assert!(LogLevel::Key.persist_recommended());
assert!(!LogLevel::Trace.persist_recommended());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,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.