#android #log #logging

no-std androidy-log

Minimal wrapper over android logging

1 stable release

1.0.4 Dec 12, 2021
1.0.3 Apr 2, 2021
1.0.2 Feb 18, 2021
1.0.1 Feb 17, 2021

#157 in #android


Used in 3 crates (2 directly)

BSL-1.0 license

12KB
235 lines

androidy-log

Rust Crates.io Documentation

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!");

lib.rs:

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!");

No runtime deps

Features