use log::{debug, error, info, trace, warn}; use std::thread; use glog; fn main() -> Result<(), Box> { glog::init()?; trace!("trace!"); debug!("debug!"); info!("info!"); warn!("warn!"); error!("error!"); let handle = thread::spawn(|| error!("from a second thread")); handle.join(); Ok(()) }