FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ParametrizedLogger

    struct · ferroui-base · v0.5.0

    struct ParametrizedLogger
    

    Logger sink parametrized for given logging level.

    View source

    Members

    new

    fn new(sink: Rc<dyn ILogSink>, level: LogEventLevel, area: &'static str) -> Self
    

    Creates a logger that writes to sink with the given level and area.

    Source

    is_valid

    fn is_valid(self: &Self) -> bool
    

    Checks if this logger can be used.

    Source

    log

    fn log(self: &Self, 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, source: Option<&dyn Any>, message_template: &str, property_values: &[&dyn Display])
    

    Logs an event with message property values, given in the order of the {Placeholders} of the template.

    Source

    Trait implementations

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

    Availability

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