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:
15
examples/logging.rs
Normal file
15
examples/logging.rs
Normal 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.");
|
||||
}
|
Reference in New Issue
Block a user