https://github.com/doumanash/androidy-log
Minimal wrapper over android logging
https://github.com/doumanash/androidy-log
android android-log rust
Last synced: about 2 months ago
JSON representation
Minimal wrapper over android logging
- Host: GitHub
- URL: https://github.com/doumanash/androidy-log
- Owner: DoumanAsh
- License: bsl-1.0
- Created: 2021-02-17T14:49:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-12T13:28:28.000Z (over 4 years ago)
- Last Synced: 2025-03-28T03:23:26.456Z (about 1 year ago)
- Topics: android, android-log, rust
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# androidy-log

[](https://crates.io/crates/androidy-log)
[](https://docs.rs/crate/androidy-log/)
Minimal wrapper over android logging facilities.
## Features:
- `std` - Enables `std::io::Write` implementation.
## Usage
```rust
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!");
```