pub fn init_logging(config: LoggingConfig) -> Result<(), Box<dyn Error>>Expand description
Initializes basic logging without OpenTelemetry.
This is suitable for applications that don’t need trace correlation.
§Examples
use term_guard::logging::setup::{LoggingConfig, init_logging};
// Initialize with default configuration
init_logging(LoggingConfig::default()).unwrap();
// Initialize with custom configuration
let config = LoggingConfig::development()
.with_json_format(true);
init_logging(config).unwrap();