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.
This commit is contained in:
Jason Travis Smith
2016-01-10 04:24:31 -05:00
parent 38b626070a
commit 200be2c0db
9 changed files with 97 additions and 147 deletions

15
examples/logging.rs Normal file
View File

@ -0,0 +1,15 @@
#[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.");
}