You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using the GitLive Firebase SDK in a Kotlin Multiplatform project and have integrated Kermit for logging. The logs, including exceptions, appear in Logcat, but they are not being sent to Firebase Crashlytics. I’m using CrashlyticsLogWriter() to route logs from Kermit to Crashlytics in Android-specific code.
object SharedLogger {
val logger:Logger=Logger.withTag("SharedLogger")
@OptIn(ExperimentalKermitApi::class)
funinitializeCrashlyticsLogging() {
Logger.addLogWriter(CrashlyticsLogWriter())
logInfo("In the init in shared")
}
funlogError(exception:Throwable, message:String) {
logger.e(exception) { message }
}
funtriggerEveryTypeOfSeverityLog() {
logger.v { "This is a verbose log message" }
logger.d { "This is a debug log message" }
logger.i { "This is an info log message" }
logger.w { "This is a warning log message" }
logger.e { "This is an error log message" }
logger.a { "This is an assert log message" }
}
funlogInfo(message:String) {
logger.i { message }
}
}
I am trying to call triggerCrashOutOfBounds() which is in shared/commonMain, from the Android UI:
funtriggerCrashOutOfBounds() {
val myList =listOf(1, 2, 3)
SharedLogger.logInfo("Calling triggerCrashOutOfBounds().")
try {
val element = myList[5]
} catch (e:IndexOutOfBoundsException) {
SharedLogger.logError(e, "Out of bounds error occurred.")
throw e
}
}
In the Crashlytics page in Firebase I can see only:
1. Info: (SharedLogger) In the onCreate()
2. Info: (SharedLogger) In the init in shared
The logs from the triggerCrashOutOfBounds are completely lost. Any ideas? (iOS can send all the logs to Crashlytics, even those from triggerCrashOutOfBounds )
The text was updated successfully, but these errors were encountered:
I’m using the GitLive Firebase SDK in a Kotlin Multiplatform project and have integrated Kermit for logging. The logs, including exceptions, appear in
Logcat
, but they are not being sent toFirebase Crashlytics
. I’m usingCrashlyticsLogWriter()
to route logs from Kermit to Crashlytics in Android-specific code.build.gradle in
shared
:androidMain
:SharedLogger in
commonMain
I am trying to call
triggerCrashOutOfBounds()
which is inshared/commonMain
, from the Android UI:In the Crashlytics page in Firebase I can see only:
The logs from the
triggerCrashOutOfBounds
are completely lost. Any ideas? (iOS can send all the logs to Crashlytics, even those fromtriggerCrashOutOfBounds
)The text was updated successfully, but these errors were encountered: