aboutsummaryrefslogtreecommitdiff
path: root/examples/logger_test.rs
blob: f917d66845e2809311b4793c8e6764427ed89d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
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");
}