Skip to main content

MAX_LOG_SIZE

Constant MAX_LOG_SIZE 

Source
pub const MAX_LOG_SIZE: u64 = _; // 1_048_576u64
Expand description

Soft cap on the live daemon-lifecycle.log size. When the file exceeds this on the next write_event call, it is renamed to daemon-lifecycle.log.1 (replacing the prior archive, if any) and a fresh empty file is opened for the new event. This bounds total disk footprint to 2 × MAX_LOG_SIZE (current + one archive).