pub struct DebugLog {
pub logging_enabled: bool,
pub log_file: Option<PathBuf>,
pub log_file_max_rolls: usize,
pub log_file_max_size: u64,
pub metrics_stats_enable: bool,
pub disable_verbose_logs: bool,
}Expand description
DogStatsD debug-log and verbose-log settings.
Fields§
§logging_enabled: boolWhether the metric debug-log destination is added at startup.
Defaults to true. Set this to false to remove the destination from the topology.
log_file: Option<PathBuf>Path of the DogStatsD metric debug log.
Defaults to None, which selects the platform-specific Agent log path at startup.
Set a path to write the diagnostic log elsewhere.
log_file_max_rolls: usizeNumber of rotated debug log files retained.
Defaults to 3. The file writer retains one rotated file when this is 0.
log_file_max_size: u64Maximum size, in bytes, of the active debug log file before rotation.
Defaults to 10,000,000 bytes. A value of 0 is accepted as the rotation threshold.
Set this based on the diagnostic data and disk space to retain.
metrics_stats_enable: boolWhether per-metric processing statistics are written to the debug log.
Defaults to false and can change at runtime. Enable this when collecting metric-level diagnostics.
disable_verbose_logs: boolWhether per-packet parse errors are logged at debug rather than error level.
Defaults to false. Enable this to reduce error-level log volume from malformed packets.