pub struct Config {
pub app_name: String,
pub log_dir: PathBuf,
pub ttl_hours: i64,
pub level: LevelFilter,
pub console: bool,
}Expand description
Fields§
§app_name: StringApplication / category name. Used in the log line and as the base
filename: <app_name>.log, <app_name>.log.YYYYMMDDHH.
Equivalent to the app argument of NodeLogger.getLogger(app).
log_dir: PathBufDirectory where log files are written.
ttl_hours: i64How many hours of rotated log files to retain (default: 72).
Files older than ttl_hours are deleted automatically on startup and
at every hourly rotation (and at most every 30 min).
level: LevelFilterMinimum level written to the log file (default: Info).
console: boolAlso print log lines to stderr.
Defaults to true in debug builds, false in release builds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more