fn init_logger(args: &MainArgs) {
    let mut builder = LogBuilder::new();
    builder.format(|record| format!("{}", record.args()));
    match (args.flag_debug, args.flag_verbose) {
        (true, _) => {
            builder.filter(Some("cargo_deadlinks"), LogLevelFilter::Debug);
        }
        (false, true) => {
            builder.filter(Some("cargo_deadlinks"), LogLevelFilter::Info);
        }
        (false, false) => {
            builder.filter(Some("cargo_deadlinks"), LogLevelFilter::Error);
        }
    }
    builder.init().unwrap();
}
/// Initalizes the logger according to the provided config flags.
Initalizes the logger according to the provided config flags.
Initalizes the logger according to the provided config flags .
fn init_logger(args: &MainArgs) {
    let mut builder = LogBuilder::new();
    builder.format(|record| format!("{}", record.args()));
    match (args.flag_debug, args.flag_verbose) {
        (true, _) => {
            builder.filter(Some("cargo_deadlinks"), LogLevelFilter::Debug);
        }
        (false, true) => {
            builder.filter(Some("cargo_deadlinks"), LogLevelFilter::Info);
        }
        (false, false) => {
            builder.filter(Some("cargo_deadlinks"), LogLevelFilter::Error);
        }
    }
    builder.init().unwrap();
}
fn init_logger ( args : & MainArgs ) { let mut builder = LogBuilder :: new ( ) ; builder . format ( | record | format ! ( " " record args ( ) ) ) ; match ( args . flag_debug , args . flag_verbose ) { ( true , _ ) => { builder . filter ( Some ( " " ) , LogLevelFilter :: Debug ) ; } ( false , true ) => { builder . filter ( Some ( " " ) , LogLevelFilter :: Info ) ; } ( false , false ) => { builder . filter ( Some ( " " ) , LogLevelFilter :: Error ) ; } } builder . init ( ) . unwrap ( ) ; }
Initalizes the logger according to the provided config flags.
Initalizes the logger according to the provided config flags .
args
&MainArgs