ILogger
trait · ferroui-splat · v0.5.0
trait ILogger
A logger: writes messages of a level (ILogger).
A message written with a type names the type that wrote it, by its name
(std::any::type_name).
Members
level
fn level(self: &Self) -> LogLevel
The level from which the logger writes (Level).
write
fn write(self: &Self, message: &str, log_level: LogLevel)
Writes message (Write(string, LogLevel)).
write_exception
fn write_exception(self: &Self, exception: &dyn Error, message: &str, log_level: LogLevel)
Writes message with exception (Write(Exception, string, LogLevel)).
write_with_type
fn write_with_type(self: &Self, message: &str, type_name: &'static str, log_level: LogLevel)
Writes message of the type type_name (Write(string, Type, LogLevel)).
write_exception_with_type
fn write_exception_with_type(self: &Self, exception: &dyn Error, message: &str, type_name: &'static str, log_level: LogLevel)
Writes message with exception, of the type type_name
(Write(Exception, string, Type, LogLevel)).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.