scribe/examples/logging.rs
Jason Travis Smith 200be2c0db Turned this into a basic and simple logging system for now.
Currently the library will handle using the log macros to directly
call println!(). Later this can be set to actually log the errors.
2016-01-10 04:24:31 -05:00

16 lines
223 B
Rust

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