Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCan't enable logs on Android #10624
Closed
Can't enable logs on Android #10624
Labels
Comments
|
Closing as |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was trying to apply something like
RUST_LOGS=debugon Android (debug) build without success.Is this doc outdated? The first doubt was that the change might should be in main.rs not main.cpp
Trying this
—nothing changes, still none of
info!,debug!orprintln!printing anything toadb logcat.Calling
android_glue::write_logdirectly doesn't print anything either. Because it calls__android_log_writewith hardcoded log level3(ANDROID_LOG_DEBUG) that never worked for me (because "Debug logs are compiled in but stripped at runtime") even withandroid:debuggable="true".Changing it to
4the direct call ofandroid_glue::write_logis working but stillinfo!,debug!andprintln!are not printing anything.Does it work for anyone? How and on which device? Thanks!
P.S.: initially I wanted to enable logging on release builds (is that possible either?), so that profiling thing could work. That would probably help to solve issues #7221 and #7211