Error logging now generates a panic.

This means that the error macro must be called last in the example.
This commit is contained in:
Jason Travis Smith
2016-01-28 14:15:21 -05:00
parent d1e6e8f4fe
commit d6a6f5107c
2 changed files with 33 additions and 27 deletions

View File

@ -5,8 +5,8 @@ extern crate scribe;
pub fn main()
{
error!("There was an error!");
warn!("Danger Will Robinson, danger!");
info!("Jason is awesome.");
debug!("This seemed to work alright.");
info!("Jason is awesome.");
warn!("Danger Will Robinson, danger!");
error!("There was an error!");
}