Firebase Crashlytics custom log does not appear in the console

前端 未结 5 891
眼角桃花
眼角桃花 2021-02-05 03:56

I\'ve been testing Firebase Crashlytics and even though the normal crash report works right I can\'t success trying to generate a custom as it says the documentatio

5条回答
  •  独厮守ぢ
    2021-02-05 04:21

    Just for updating the answer for log Kotlin with Firebase it is:

    FirebaseCrashlytics.getInstance().log(error.toString())
    

    And for Exception

    FirebaseCrashlytics.getInstance().recordException(e)
    

    See documentation: https://firebase.google.com/docs/crashlytics/get-started?platform=Android

提交回复
热议问题