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:
@ -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!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user