1 stable release
1.0.4 | Dec 12, 2021 |
---|---|
1.0.3 |
|
1.0.2 |
|
1.0.1 |
|
#141 in #android
45 downloads per month
Used in 3 crates
(2 directly)
12KB
235 lines
androidy-log
Minimal wrapper over android logging facilities.
Features:
std
- Enablesstd::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!");
lib.rs
:
Minimal wrapper over Android logging facilities.
Features:
std
- Enablesstd::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!");