18 lines
299 B
Rust
18 lines
299 B
Rust
use log::{debug, error, info, trace, warn};
|
|
use std::thread;
|
|
|
|
use glog;
|
|
|
|
fn main() {
|
|
glog::init();
|
|
|
|
trace!("trace!");
|
|
debug!("debug!");
|
|
info!("info!");
|
|
warn!("warn!");
|
|
error!("error!");
|
|
|
|
let handle = thread::spawn(|| error!("from a second thread"));
|
|
handle.join();
|
|
}
|