Crate android_logger [−] [src]
A logger which writes to android output.
Example
#[macro_use] extern crate log; extern crate android_logger; use log::LogLevel; fn native_activity_create() { android_logger::init_once(LogLevel::Trace); debug!("this is a debug {}", "message"); error!("this is printed by default"); if log_enabled!(LogLevel::Info) { let x = 3 * 4; // expensive computation info!("the answer was: {}", x); } }
Functions
init_once |
Initializes the global logger with an android logger. |