pub struct FileLogOptions {
pub include_heartbeats: bool,
pub include_timestamp: bool,
pub include_milliseconds: bool,
pub max_size_bytes: Option<u64>,
pub retention: Option<RetentionPolicy>,
}Expand description
Output switches for FileLog (FR-026): FileLogHeartbeats/FileIncludeMilliseconds/
FileIncludeTimeStampForMessages.
Fields§
§include_heartbeats: boolFileLogHeartbeats: whether Heartbeat (35=0) messages are written to messages.log.
include_timestamp: boolFileIncludeTimeStampForMessages: whether each line is prefixed with a timestamp.
include_milliseconds: boolFileIncludeMilliseconds: whether that timestamp includes milliseconds.
max_size_bytes: Option<u64>MaxFileLogSize (NEW-108, audit 006): rotate messages.log/event.log once either
exceeds this many bytes – the current file is renamed to <name>.1 (replacing any
previous backup) and a fresh file is opened. None (the default) preserves the previous
unbounded-growth behavior; this is log rotation only, distinct from message-store body
retention (which must preserve resend/recovery semantics and is handled separately).
retention: Option<RetentionPolicy>NEW-157 (feature 012): composable generation-count and/or time-based retention beyond the
single-backup-overwrite default. None (the default) preserves today’s exact behavior.
Trait Implementations§
Source§impl Clone for FileLogOptions
impl Clone for FileLogOptions
Source§fn clone(&self) -> FileLogOptions
fn clone(&self) -> FileLogOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more