pub struct LoggerConfig {
pub service_name: ServiceName,
pub log_root: PathBuf,
pub level: LevelFilter,
pub queue_capacity: usize,
pub rotation: RotationPolicy,
pub retention: RetentionPolicy,
pub redaction: RedactionPolicy,
pub process_identity: ProcessIdentityPolicy,
pub enable_file_sink: bool,
pub enable_console_sink: bool,
}Expand description
Public configuration for the lightweight logging runtime.
Fields§
§service_name: ServiceNameStable service name attached to emitted records.
log_root: PathBufRoot directory that owns the service log tree.
level: LevelFilterMinimum severity level emitted by the logger.
queue_capacity: usizeReserved for future async/backpressure implementation. Phase 1 execution is synchronous; this value is stored but not yet applied.
rotation: RotationPolicyRotation settings for the built-in JSONL sink.
retention: RetentionPolicyRetention settings for rotated JSONL files.
redaction: RedactionPolicyRedaction policy applied before sink fan-out.
process_identity: ProcessIdentityPolicyProcess identity policy for emitted records.
enable_file_sink: boolWhether the built-in JSONL file sink is enabled.
enable_console_sink: boolWhether the built-in console sink is enabled.
Implementations§
Source§impl LoggerConfig
impl LoggerConfig
Sourcepub fn default_for(service_name: ServiceName, log_root: PathBuf) -> Self
pub fn default_for(service_name: ServiceName, log_root: PathBuf) -> Self
Builds the documented v1 defaults for a service-scoped logger configuration.
If constants::SC_LOG_ROOT_ENV_VAR is set, it is used only when
log_root is empty. A non-empty log_root parameter is treated as
explicit configuration and takes precedence over the environment helper
per LOG-009.