ConsoleLogger
struct · ferroui-splat · v0.5.0
struct ConsoleLogger
A logger that writes a line per message to the standard output or to a writer
(ConsoleLogger), the messages of its level and above.
A message with an exception is written through exception_message_format: {0} is the
message and {1} the exception.
Members
new
fn new() -> Self
A logger that writes to the standard output (ConsoleLogger()).
with_writer
fn with_writer(writer: Box<dyn Write>) -> Self
A logger that writes to writer (ConsoleLogger(TextWriter)).
exception_message_format
fn exception_message_format(self: &Self) -> String
The format of a message with an exception (ExceptionMessageFormat), {0} - {1} at
first.
set_exception_message_format
fn set_exception_message_format(self: &Self, format: impl Into<String>)
Sets the format of a message with an exception.
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>AnyDefaultILogger
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.