Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
object TimberLog {
fun init() {
Timber.plant(ReleaseTree())
}
class ReleaseTree: Timber.Tree() {
override fun log(priority: Int, tag: String?, message: String, throwable: Throwable?) {
if (priority >= Log.WARN) {
FlurryAgent.onError(tag ?: "", message, throwable ?: Throwable(message))
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment