use aicommit::logging::{LoggingConfig, init_logging};
use tracing::{info, warn, error, debug, trace};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut config = LoggingConfig::new();
config.with_debug();
let _logging_guard = init_logging(&config)?;
trace!("This is a trace message");
debug!("This is a debug message");
info!("This is an info message");
warn!("This is a warning message");
error!("This is an error message");
info!(user_id = 123, operation = "test", "User performed test operation");
println!("Logging test completed successfully!");
Ok(())
}