Created
August 7, 2020 08:49
-
-
Save gpetuhov/c696e59e6cb874730397f8683999c295 to your computer and use it in GitHub Desktop.
Android release build logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Android release build logging | |
Ways to see logs in Android release build: | |
1. Android Studio -> logcat -> No Filters | |
2. adb logcat | |
3. pidcat | |
https://github.com/JakeWharton/pidcat | |
4. Android Remote Debugger | |
https://github.com/zerobranch/android-remote-debugger | |
Add this in your Application class: | |
AndroidRemoteDebugger.init(applicationContext) | |
Timber.plant(Timber.DebugTree(), object : Timber.Tree() { | |
override fun log(priority: Int, tag: String?, message: String, th: Throwable?) { | |
AndroidRemoteDebugger.Log.log(priority, tag, message, th) | |
} | |
}) | |
Inspect logs in browser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment