android-logd-logger 0.5.0

A logging implementation for `log` which directly writes to the Android logd daemon
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Demonstrates how to configure the logger *after* initialization.
use log::*;

fn main() {
    let logger = android_logd_logger::builder().filter_level(LevelFilter::Info).init();

    info!("hello?");

    // Use a custom target string that is used as tag.
    logger.tag_target();
    info!(target: "custom", "hello custom target!");

    logger.tag("whooha");
    info!("hello whooha");
}