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.
20 lines
456 B
Rust
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!");
|
|
}
|