fn init_log() {
        // initialize logger
        WriteLogger::init(
            LevelFilter::Trace,
            simplelog::ConfigBuilder::new()
                .set_time_format("%Y-%b-%d %H:%M:%S.%f".to_string())
                .build(),
            OpenOptions::new()
                .write(true)
                .create(true)
                .open("integration_test.log")
                .unwrap(),
        )
        .expect("unable to create integration_test.log");

        // useful traces
        trace!("created log");
    }
/// Create new logger and optionally delete logfile is bigger than cli value
Create new logger and optionally delete logfile is bigger than cli value
Create new logger and optionally delete logfile is bigger than cli value
fn init_log() {
        // initialize logger
        WriteLogger::init(
            LevelFilter::Trace,
            simplelog::ConfigBuilder::new()
                .set_time_format("%Y-%b-%d %H:%M:%S.%f".to_string())
                .build(),
            OpenOptions::new()
                .write(true)
                .create(true)
                .open("integration_test.log")
                .unwrap(),
        )
        .expect("unable to create integration_test.log");
        // useful traces
        trace!("created log");
    }
fn init_log ( ) { // initialize logger WriteLogger :: init ( LevelFilter :: Trace , simplelog :: ConfigBuilder :: new ( ) . set_time_format ( " " . to_string ( ) ) . build ( ) , OpenOptions :: new ( ) . write ( true ) . create ( true ) . open ( " " ) . unwrap ( ) , ) . expect ( " " ) ; // useful traces trace ! ( " " ) ; }
Create new logger and optionally delete logfile is bigger than cli value
Create new logger and optionally delete logfile is bigger than cli value