spectate_lib 0.0.4

A logging target for env_logger for use by the Spectate client
Documentation
use env_logger::Env;
use log::{debug, info, trace};
use spectate_lib::Spectate;

#[test]
fn test_client_trace() {
    //initialize a logger
    //let spectate = Spectate::new();
    let _ = env_logger::Builder::from_env(Env::default().default_filter_or("client_trace=info"))
        .is_test(true)
        // here we add the custom logging target to env_logger
        .target(Spectate::target())
        .try_init();
    for _ in 1..10 {
        //std::thread::sleep(Duration::from_millis(775));
        info!("Calling info from test_client_trace");
        debug!("Calling debug from test_client");
        trace!("Calling trace from test_client");
        //   spectate.flush();
    }

    //at this point we should block and wait for the logger to finish sending
}