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.
This commit is contained in:
2016-08-24 11:41:48 -04:00
parent c655eca358
commit 13a2cee826
14 changed files with 884 additions and 56 deletions

View File

@ -6,7 +6,14 @@ 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!");
error!("There was an error!");
warn!(domain: "Temp Domain", "Danger Will Robinson, danger!");
//error!("There was an error!");
//error!(domain: "Temp Domain", "There was an error!");
}