Upgrade to Pro — share decks privately, control downloads, hide ads and more …

All you need to know about new Logcat in Androi...

All you need to know about new Logcat in Android Studio - DevFest Bangkok 2022

"All you need to know about new Logcat in Android Studio" session in DevFest Bangkok 2022 at Oct 1, 2022

Somkiat Khitwongwattana

October 19, 2022
Tweet

More Decks by Somkiat Khitwongwattana

Other Decks in Technology

Transcript

  1. • V → Verbose • D → Debug • I

    → Info • W → Warning • E → Error
  2. class DevFestApplication : Application() { override fun onCreate() { /*

    ... */ Timber.plant( if (BuildConfig.DEBUG) Timber.DebugTree() else CrashReportingTree() ) } }
  3. class DevFestApplication : Application() { override fun onCreate() { /*

    ... */ Timber.plant( if (BuildConfig.DEBUG) Timber.DebugTree() else CrashReportingTree() ) } }
  4. class CrashReportingTree : Timber.Tree() { override fun log( priority: Int,

    tag: String?, message: String, t: Throwable? ) { // Manage your production log } }