Skip to main content

chrony_confile/ast/
log.rs

1//! Logging configuration types.
2//!
3//! These directives control chrony's logging behaviour, including which measurement data to log,
4//! log banner frequency, log change thresholds, and the log directory path.
5
6#[derive(Debug, Clone, Default, PartialEq, Eq)]
7pub struct LogConfig {
8    pub raw_measurements: bool,
9    pub measurements: bool,
10    pub selection: bool,
11    pub statistics: bool,
12    pub tracking: bool,
13    pub rtc: bool,
14    pub refclocks: bool,
15    pub tempcomp: bool,
16}
17
18#[derive(Debug, Clone, PartialEq)]
19pub struct LogBannerConfig { pub limit: u32 }
20
21#[derive(Debug, Clone, PartialEq)]
22pub struct LogChangeConfig { pub threshold: f64 }
23
24#[derive(Debug, Clone, PartialEq)]
25pub struct LogDirConfig { pub directory: String }