Struct loggy::Loggy
[−]
[src]
pub struct Loggy { pub prefix: &'static str, pub show_time: bool, pub log_level: LogLevel, }
Control the behavior of the loggy
logger.
Fields
prefix: &'static str
A prefix appended to each message.
This typically contains the name of the program.
show_time: bool
Whether to include the date and time in the log message.
log_level: LogLevel
The threshold level of messages to actually emit.
When running tests, LogLevel::Debug
messages are always emitted,
regardless of this setting, to facilitate debugging failing tests.