LogCapture
struct · ferroui-inspect · v0.5.0
struct LogCapture
The process-wide capture. Entries are recorded only while a guard of LogCapture::install is
alive; the ring keeps the last 1024.
Members
install
fn install() -> LogGuard
Installs the tee, or keeps the installed one for one more guard.
capture_from
fn capture_from(level: LogEventLevel)
Captures events from level up while the tee is installed (Information by default).
since
fn since(cursor: &mut u64) -> Vec<LogEntry>
The entries after cursor; cursor moves to the last recorded entry.
snapshot
fn snapshot(after: u64) -> Value
{"cursor", "entries"} of the entries after after.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.