Add proper logging #9

Merged
Mr_Steppy merged 6 commits from logging into master 2024-12-17 06:03:26 +01:00
Showing only changes of commit 7f3adc9bc2 - Show all commits

View File

@ -44,10 +44,10 @@ struct Args {
#[arg(num_args = 1.., value_parser = ServerReference::from_str)]
servers: Vec<ServerReference>,
/// How verbose logging output should be
#[arg(long, conflicts_with_all = ["quiet", "info"], default_value = "info")]
log_level: Option<LogLevel>,
#[arg(long, default_value = "info", conflicts_with_all = ["quiet", "info"])]
log_level: LogLevel,
/// Only log errors
#[arg(short, long, default_value = "false")]
#[arg(short, long, default_value = "false", conflicts_with_all = ["info"])]
quiet: bool,
/// Log additional debugging info
#[arg(short='v', long, default_value = "false")]