aicommit 0.1.143

A CLI tool that generates concise and descriptive git commit messages using LLMs
Documentation
use aicommit::logging::{LoggingConfig, init_logging};
use tracing::{info, warn, error, debug, trace};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Test basic logging configuration
    let mut config = LoggingConfig::new();
    config.with_debug();

    // Initialize logging
    let _logging_guard = init_logging(&config)?;

    // Test different log levels
    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");

    // Test structured logging
    info!(user_id = 123, operation = "test", "User performed test operation");

    println!("Logging test completed successfully!");
    Ok(())
}