Skip to content

Instantly share code, notes, and snippets.

@gpetuhov
Created August 7, 2020 08:49
Show Gist options
  • Save gpetuhov/c696e59e6cb874730397f8683999c295 to your computer and use it in GitHub Desktop.
Save gpetuhov/c696e59e6cb874730397f8683999c295 to your computer and use it in GitHub Desktop.
Android release build logging
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