From 7fb6b2e778d694142fb1c97f75d23e8226a7910a Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 19 Jul 2017 09:38:36 +0200 Subject: [PATCH] add missing logging examples --- librs/src/lib.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/librs/src/lib.rs b/librs/src/lib.rs index cf15d5ee4..4ca2db276 100644 --- a/librs/src/lib.rs +++ b/librs/src/lib.rs @@ -37,15 +37,22 @@ extern crate rlibc; extern crate spin; -// These need to be visible to the linker, so we need to export them. -pub use runtime_glue::*; - #[macro_use] mod macros; +#[macro_use] +mod logging; mod runtime_glue; mod console; +// These need to be visible to the linker, so we need to export them. +pub use runtime_glue::*; +pub use logging::*; + #[no_mangle] pub extern "C" fn rust_main() { println!("Hello from Rust!"); + + info!("hello"); + //warn!("warning"); + //error!("oops"); }