Struct LogConfig
pub struct LogConfig {
pub log_persistence: String,
pub log_persistence_path: String,
pub log_persistence_max_entries: usize,
pub log_persistence_max_bytes: u64,
pub log_persistence_rotate_daily: bool,
pub log_persistence_retention_max_files: usize,
pub log_persistence_retention_max_age_days: u64,
pub log_persistence_max_entries_per_segment: usize,
pub log_tool_io: String,
pub log_tool_io_truncate_bytes: usize,
pub log_tool_io_denylist: Vec<String>,
pub log_llm_request_payload: String,
}Expand description
Minimal observability config shape used by the writer + tool-io
capturer. Mirrors the relevant [observability] fields of
zeroclaw_config::schema::ObservabilityConfig.
Fields§
§log_persistence: String§log_persistence_path: String§log_persistence_max_entries: usize§log_persistence_max_bytes: u64Size threshold (bytes) that triggers an archive rotation in rotating
mode. 0 disables size-based rotation.
log_persistence_rotate_daily: boolRotate on a UTC day boundary in rotating mode.
log_persistence_retention_max_files: usizeMax rotated archive files to keep in rotating mode. 0 keeps all.
log_persistence_retention_max_age_days: u64Max age (days) of rotated archives in rotating mode. 0 disables.
log_persistence_max_entries_per_segment: usizeRotate the active file once it holds this many non-empty JSONL lines,
in rotating mode. In steady state each archive holds exactly this
many entries; an existing active file that already exceeds the cap at
startup is archived as-is on the next append (one over-cap transition
archive), after which steady state resumes.
0 disables entry-count rotation. Ignored by every other policy.
log_tool_io: String§log_tool_io_truncate_bytes: usize§log_tool_io_denylist: Vec<String>§log_llm_request_payload: String