Crate android_logger [−] [src]
A logger which writes to android output.
Example
⚠Be careful when using this code, it's not being tested!
#[macro_use] extern crate log; extern crate android_logger; use log::Level; fn native_activity_create() { android_logger::init_once(Level::Trace); debug!("this is a debug {}", "message"); error!("this is printed by default"); if log_enabled!(Level::Info) { let x = 3 * 4; // expensive computation info!("the answer was: {}", x); } }
Structs
AndroidLogger |
Underlying android logger, for cases where |
Functions
init_once |
Initializes the global logger with an android logger. |