fn main() {
println!(
r#"Run this example with:
1. `cargo test --example testing -- --show-output`
2. `cargo test --example testing -- --nocapture`
3. `cargo test --example testing`
Compare the output of the three commands."#
);
}
#[cfg(test)]
mod tests {
use logforth::append::Testing;
use logforth::record::LevelFilter;
#[test]
fn testing() {
logforth::starter_log::builder()
.dispatch(|d| d.filter(LevelFilter::All).append(Testing::default()))
.apply();
log::error!("Hello error!");
log::warn!("Hello warn!");
log::info!("Hello info!");
log::debug!("Hello debug!");
log::trace!("Hello trace!");
}
}