xesite/examples/logger_test.rs

12 lines
276 B
Rust
Raw Permalink Normal View History

2020-09-27 16:35:24 +00:00
use log::{debug, error, info, trace, warn};
fn main() {
pretty_env_logger::init();
trace!("starting main");
debug!("debug message");
info!("this is some information");
warn!("oh no something bad is about to happen");
error!("oh no it's an error");
}