ActionLogger
struct · ferroui-splat · v0.5.0
struct ActionLogger
A logger that hands each message to a function (ActionLogger). It does not filter by level:
the functions decide.
Members
new
fn new(write_no_type: Option<Box<dyn Fn(&str, super::LogLevel) -> ()>>, write_with_type: Option<Box<dyn Fn(&str, &'static str, super::LogLevel) -> ()>>, write_no_type_with_exception: Option<Box<dyn Fn(&dyn Error, &str, super::LogLevel) -> ()>>, write_with_type_and_exception: Option<Box<dyn Fn(&dyn Error, &str, &'static str, super::LogLevel) -> ()>>) -> Self
A logger over the four functions; a missing one drops its messages
(ActionLogger(Action<string, LogLevel>, Action<string, Type, LogLevel>, Action<Exception, string, LogLevel>, Action<Exception, string, Type, LogLevel>)).
set_level
fn set_level(self: &Self, level: LogLevel)
Sets the level (Level { set; }).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyILogger
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.