Function android_logd_logger::log

source ·
pub fn log(
    timestamp: SystemTime,
    buffer_id: Buffer,
    priority: Priority,
    pid: u16,
    thread_id: u16,
    tag: &str,
    message: &str
) -> Result<(), Error>
Expand description

Construct a log entry

This can be used to forge an android logd entry

§Example


android_logd_logger::log(SystemTime::now(), Buffer::Main, Priority::Info, 0, 0, "tag", "message").unwrap();