diff --git a/examples/logger.rs b/examples/logger.rs index 2e7b806..2c61e29 100644 --- a/examples/logger.rs +++ b/examples/logger.rs @@ -1,14 +1,10 @@ -#[macro_use] -extern crate scribe; - - - +use scribe::{debug, info, warn}; use scribe::{Levels, Logger, Record}; #[cfg(not(feature="use_std"))] -const core_logger: TestLogger = TestLogger {}; +const CORE_LOGGER: TestLogger = TestLogger {}; @@ -66,7 +62,7 @@ impl TestLogger #[cfg(not(feature="use_std"))] fn set_logger() -> *const Logger { - &core_logger + &CORE_LOGGER } } @@ -93,6 +89,8 @@ impl Logger for TestLogger mod temp_mod { + use scribe::info; + pub fn print() { info!("Mod test."); diff --git a/examples/logging.rs b/examples/logging.rs index 5e97d20..6d5a5dc 100644 --- a/examples/logging.rs +++ b/examples/logging.rs @@ -1,5 +1,4 @@ -#[macro_use] -extern crate scribe; +use scribe::{debug, info, warn}; diff --git a/tests/lib.rs b/tests/lib.rs index de4d224..7f72173 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -1,7 +1,3 @@ -#[macro_use] -extern crate scribe; - - #[test] pub fn test_blank() {