ILogSink
trait · ferroui-base · v0.5.0
trait ILogSink
Defines a sink for log events.
Members
is_enabled
fn is_enabled(self: &Self, level: LogEventLevel, area: &str) -> bool
Checks if given log level and area is enabled.
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.
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.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.