Replies: 3 comments
-
What version are you using? We don't have a way to do that formally, but if you're using one of the newer 1.0.x versions, you can add something like this on iOS: import co.touchlab.kermit.crashlytics.FIRCrashlytics
fun addCrashlyticsKey(key:String, value:Any){
val cr = FIRCrashlytics.crashlytics()
cr.setCustomValue(value, key)
} Our cinterop includes We're doing a lot of rework now, so will think about this. |
Beta Was this translation helpful? Give feedback.
-
Makes sense. I was thinking also to inherit from Throwable and add custom keys there, then process it in the custom Crashlytics log writer. Anyways native support in the lib would be the best option. |
Beta Was this translation helpful? Give feedback.
-
I noticed Can we expose it on the logger side as well? Here is a PR with the changes: #308 |
Beta Was this translation helpful? Give feedback.
-
Is there a way I can associate custom keys with an error? For example Crashlytics allows to do firebaseCrashlytics.setCustomKey.
Beta Was this translation helpful? Give feedback.
All reactions