scribe/examples/logging.rs
Jason Travis Smith 13a2cee826 The Logger system can now be expanded with external logging libraries.
While external loggers can be used, if you are compiling with
--features use_std, then it will default to just printing everything
to the stdout unless a logger is created.

This library can be used without the STD library, however, you will have
to write an external logger.
2016-08-24 11:41:48 -04:00

20 lines
456 B
Rust

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