FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    install

    fn install() -> LogGuard
    

    Installs the tee, or keeps the installed one for one more guard.

    Source

    capture_from

    fn capture_from(level: LogEventLevel)
    

    Captures events from level up while the tee is installed (Information by default).

    Source

    since

    fn since(cursor: &mut u64) -> Vec<LogEntry>
    

    The entries after cursor; cursor moves to the last recorded entry.

    Source

    snapshot

    fn snapshot(after: u64) -> Value
    

    {"cursor", "entries"} of the entries after after.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.