ParametrizedLogger
struct · ferroui-base · v0.5.0
struct ParametrizedLogger
Logger sink parametrized for given logging level.
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.
is_valid
fn is_valid(self: &Self) -> bool
Checks if this logger can be used.
log
fn log(self: &Self, 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, 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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherClone
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.