An easy-to-configure and flexible logger that writes logs to stderr or stdout and/or to files. It allows custom logline formats, and it allows changing the log specification at runtime. It also allows defining additional log streams, e.g. for alert or security messages.
usecrate::{Cleanup, Criterion, Naming};// Describes how rotation should work
#[derive(Clone, Debug)]pub(super)structRotationConfig{// Defines if rotation should be based on size or date
pub(crate)criterion: Criterion,
// Defines if rotated files should be numbered or get a date-based name
pub(crate)naming: Naming,
// Defines the cleanup strategy
pub(crate)cleanup: Cleanup,
}