pub struct Loggy {
pub prefix: &'static str,
pub show_time: bool,
pub show_thread: bool,
}
Expand description
Control the behavior of the loggy
logger.
A prefix appended to each message.
This typically contains the name of the program.
Whether to include the date and time in the log message.
Whether to include the thread id in the log message.
Determines if a log message with the specified metadata would be
logged.
Read more
Flushes any buffered records.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.