Skip to main content

Bugsnag

Setup

You first need to configure Bugsnag and CrashKiOS initialization. See the CrashKiOS Bugsnag Tutorial Doc.

Add the dependency

commonMain {
dependencies {
implementation("co.touchlab:kermit-bugsnag:2.0.4")
}
}

Add the log writer

Logger.setLogWriters(BugsnagLogWriter())

Custom Values

You can add custom values to Bugsnag, but not through Kermit. Call CrashKiOS directly.

BugsnagKotlin.setCustomValue("someKey", "someValue")

Touchlab KMP Insiders Newsletter

Subscribe