scribe/examples/logging.rs
Jason Travis Smith d6a6f5107c Error logging now generates a panic.
This means that the error macro must be called last in the example.
2016-01-28 14:15:21 -05:00

13 lines
206 B
Rust

#[macro_use]
extern crate scribe;
pub fn main()
{
debug!("This seemed to work alright.");
info!("Jason is awesome.");
warn!("Danger Will Robinson, danger!");
error!("There was an error!");
}