FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ILogSink

    trait · ferroui-base · v0.5.0

    trait ILogSink
    

    Defines a sink for log events.

    View source

    Members

    is_enabled

    fn is_enabled(self: &Self, level: LogEventLevel, area: &str) -> bool
    

    Checks if given log level and area is enabled.

    Source

    log

    fn log(self: &Self, level: LogEventLevel, area: &str, source: Option<&dyn Any>, message_template: &str)
    

    Logs an event.

    source is the object from which the event originates.

    Source

    log_with_values

    fn log_with_values(self: &Self, level: LogEventLevel, area: &str, source: Option<&dyn Any>, message_template: &str, property_values: &[&dyn Display])
    

    Logs a new event.

    property_values are the message property values, in the order of the {Placeholders} of the template.

    Source

    Trait implementations

    Availability

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