FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    StringLogSink

    struct · ferroui-base · v0.5.0

    struct StringLogSink
    

    A sink that formats events as text lines and hands them to a callback.

    View source

    Members

    new

    fn new(logger: impl Fn(&str) -> () + Send + Sync + 'static, minimum_level: LogEventLevel, areas: &[&str]) -> Self
    

    Creates a sink that passes every formatted event with at least minimum_level to logger. When areas is not empty only events of those areas are logged; valid values are listed in LogArea.

    Source

    trace

    fn trace(minimum_level: LogEventLevel, areas: &[&str]) -> Self
    

    Creates a sink that writes events to the diagnostic trace output of the process (standard error).

    Source

    Trait implementations

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

    Availability

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