FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ActionLogger

    struct · ferroui-splat · v0.5.0

    struct ActionLogger
    

    A logger that hands each message to a function (ActionLogger). It does not filter by level: the functions decide.

    View source

    Members

    new

    fn new(write_no_type: Option<Box<dyn Fn(&str, super::LogLevel) -> ()>>, write_with_type: Option<Box<dyn Fn(&str, &'static str, super::LogLevel) -> ()>>, write_no_type_with_exception: Option<Box<dyn Fn(&dyn Error, &str, super::LogLevel) -> ()>>, write_with_type_and_exception: Option<Box<dyn Fn(&dyn Error, &str, &'static str, super::LogLevel) -> ()>>) -> Self
    

    A logger over the four functions; a missing one drops its messages (ActionLogger(Action<string, LogLevel>, Action<string, Type, LogLevel>, Action<Exception, string, LogLevel>, Action<Exception, string, Type, LogLevel>)).

    Source

    set_level

    fn set_level(self: &Self, level: LogLevel)
    

    Sets the level (Level { set; }).

    Source

    Trait implementations

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

    Availability

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