AbortHandler

A Log instance that, when installed (the default configuration), will handle finalization of Level.Fatal logs by aborting the program. This instance will always be the last Root.installed instance, giving a chance for all other installed Log instances to capture the log. If no other Log instances logged the Level.Fatal log, printStackTrace will be used to output the error before aborting.

Abort handling is performed in the following manner:

Properties

Link copied to clipboard
@JvmStatic
@get:JvmName(name = "isInstalled")
val isInstalled: Boolean

Checks if AbortHandler is installed at Root.

Link copied to clipboard
const val UID: String

The AbortHandler.uid (i.e. io.matthewnelson.kmp.log.Log.AbortHandler)

Functions

Link copied to clipboard
protected open override fun log(level: Log.Level, domain: String?, tag: String, msg: String?, t: Throwable?): Boolean

Log something.