1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use lunatic_log::{debug, error, info, subscriber::fmt::FmtSubscriber, trace, warn, LevelFilter};

fn main() {
    // Initialize subscriber
    lunatic_log::init(FmtSubscriber::new(LevelFilter::Trace).pretty());

    // Log message
    error!("Error");
    warn!("Warn");
    info!("Info");
    debug!("Debug");
    trace!("Trace");

    // Wait for events to propagate
    lunatic::sleep(std::time::Duration::from_millis(50));
}