LoginSignup
1
2

Firebaseを使ってクラッシュを集計するログを仕込む

Posted at

はじめに

今回はFirebaseCrashlitycsを使ったクラッシュの集計方法を紹介していきます

本文

仕込む場所はrunCatchingtry catchの中で大丈夫です
下記のようにThrowableを引数として渡すことでエラーの内容を集計してくれます

runCatching {
// hoge
}.onFailer {
Firebase.crashlytics.recordException(it)
}

最後に

今回はFirebaseCrashlitycsを使ったクラッシュの集計方法を紹介しました
どなたかのお役に立てれば幸いです

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2