#tracing #android #log

tracing-android

Tracing layer to log to Android’s logcat

7 releases

0.2.0 Jan 15, 2022
0.1.6 Dec 9, 2021
0.1.3 Jul 6, 2021

#47 in #android

48 downloads per month
Used in 2 crates (via tlfs)

MIT/Apache

10KB
208 lines

tracing-android

tracing-android

Composable tracing layer which logs to logcat using the Android NDK's __android_log_write function. The provided tag will be capped at 23 bytes. Logging events resulting in messages longer than 4000 bytes will result in multiple log lines in logcat. This avoids running into logcat's truncation behaviour.

License: MIT OR Apache-2.0


lib.rs:

tracing-android

Composable tracing layer which logs to logcat using the Android NDK's __android_log_write function. The provided tag will be capped at 23 bytes. Logging events resulting in messages longer than 4000 bytes will result in multiple log lines in logcat. This avoids running into logcat's truncation behaviour.

Dependencies

~1MB
~20K SLoC

a