Module logging

Module logging 

Source
Expand description

Logging configuration module

Provides configurable file-based logging with rotation support.

§Example

use batata_client::logging::{LogConfig, LogRotation};

// Create log config with daily rotation
let log_config = LogConfig::new("/var/log/batata")
    .with_level("info")
    .with_rotation(LogRotation::Daily)
    .with_max_files(7);

// Initialize logging (returns a guard that must be held)
let _guard = log_config.init().expect("Failed to initialize logging");

Structs§

LogConfig
Logging configuration
LogGuard
Guard that keeps the logging system active

Enums§

LogRotation
Log rotation interval