StringLogSink
struct · ferroui-base · v0.5.0
struct StringLogSink
A sink that formats events as text lines and hands them to a callback.
Members
new
fn new(logger: impl Fn(&str) -> () + Send + Sync + 'static, minimum_level: LogEventLevel, areas: &[&str]) -> Self
Creates a sink that passes every formatted event with at least
minimum_level to logger. When areas is not empty only events of
those areas are logged; valid values are listed in
LogArea.
trace
fn trace(minimum_level: LogEventLevel, areas: &[&str]) -> Self
Creates a sink that writes events to the diagnostic trace output of the process (standard error).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherILogSink
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.