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

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.

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.

Trait Implementations

impl Log for Loggy
[src]

[src]

Determines if a log message with the specified metadata would be logged. Read more

[src]

Logs the LogRecord. Read more