use std::thread;
use log::*;
fn main() {
android_logd_logger::builder()
.parse_filters("debug")
.tag_target_strip()
.prepend_module(true)
.init();
trace!("hello");
info!("helloHello");
warn!("hellohello");
error!("HELLOHELLO");
info!(target: "custom", "hello custom target");
for _ in 0..3 {
thread::spawn(|| {
trace!("hello");
info!("helloHello");
warn!("hellohello");
error!("HELLOHELLO");
info!(target: "custom", "hello custom target");
hello_again::hello();
})
.join()
.expect("failed to join thread");
}
}
mod hello_again {
pub fn hello() {
log::debug!("target set to hello");
}
}