6 releases

0.2.2 Apr 12, 2024
0.2.1 May 26, 2022
0.2.0 Apr 16, 2022
0.1.2 Dec 3, 2021

#436 in Debugging

Download history 132/week @ 2024-12-21 430/week @ 2024-12-28 1969/week @ 2025-01-04 1454/week @ 2025-01-11 512/week @ 2025-01-18 966/week @ 2025-01-25 926/week @ 2025-02-01 725/week @ 2025-02-08 815/week @ 2025-02-15 1205/week @ 2025-02-22 1358/week @ 2025-03-01 755/week @ 2025-03-08 1219/week @ 2025-03-15 1441/week @ 2025-03-22 1418/week @ 2025-03-29 1362/week @ 2025-04-05

5,577 downloads per month
Used in 2 crates

MIT license

16KB
297 lines

Integration layer between tracing and Android logs.

This crate provides a MakeWriter suitable for writing Android logs.

It is designed as an integration with the fmt subscriber from tracing-subscriber and as such inherits all of its features and customization options.

Usage

paranoid_android::init(env!("CARGO_PKG_NAME"));

or with custom options and combined with other layers

#
use tracing_subscriber::filter::LevelFilter;
use tracing_subscriber::fmt::FmtSpan;
use tracing_subscriber::prelude::*;

let android_layer = paranoid_android::layer(env!("CARGO_PKG_NAME"))
    .with_span_events(FmtSpan::CLOSE)
    .with_thread_names(true)
    .with_filter(LevelFilter::DEBUG);

tracing_subcriber::registry()
    .with(android_layer)
    .with(other_layer)
    .init();

Cargo features

  • api-30: Enables support for Android API level 30 and source location information

paranoid-android

Integration layer between tracing and Android logs

Crates.io docs.rs

This crate provides a MakeWriter suitable for writing Android logs.

It is designed as an integration with the fmt subscriber from tracing-subscriber and as such inherits all of its features and customization options.

Dependencies

~1–2MB
~46K SLoC