Crate androidy_log

Source
Expand description

Minimal wrapper over Android logging facilities.

§Features:

  • std - Enables std::io::Write implementation.

§Usage

use androidy_log::{LogPriority, Writer};

use core::fmt::Write;

let mut writer = Writer::new("MyTag", LogPriority::INFO);
let _ = write!(writer, "Hellow World!");
drop(writer); //or writer.flush();

androidy_log::println!("Hello via macro!");
androidy_log::eprintln!("Error via macro!");

Macros§

eprintln
eprintln alternative to write message with ERROR priority.
println
println alternative to write message with INFO priority.

Structs§

Writer
Android log writer.

Enums§

LogPriority
Priority of the log message.