Root

object Root(source)

The root location for which all Log instances are installed. By default, only AbortHandler is available; Log implementations must be installed for logging to occur.

Functions

Link copied to clipboard
@JvmStatic
operator fun get(uid: String): Log?

Returns the Log instance currently installed where Log.uid matches that which is specified, or null if no Log instances are found.

Link copied to clipboard
@JvmStatic
fun install(log: Log): Boolean

Install a Log instance.

Link copied to clipboard
@JvmStatic
fun installed(): List<Log>

Returns a list of all Log instances that are currently installed.

Link copied to clipboard
@JvmStatic
inline fun installOrThrow(log: Log)

Install a Log instance.

Link copied to clipboard
@JvmStatic
inline fun uninstall(log: Log): Boolean

Uninstall the Log instance, or a Log instance containing the same Log.uid as the one provided.

@JvmStatic
fun uninstall(uid: String): Boolean

Uninstall a Log instance.

Link copied to clipboard
@JvmStatic
fun uninstallAll(evenAbortHandler: Boolean)

Uninstall all currently installed Log instances.

Link copied to clipboard
@JvmStatic
inline fun uninstallOrThrow(log: Log)

Uninstall the Log instance, or a Log instance containing the same Log.uid as the one provided.

@JvmStatic
inline fun uninstallOrThrow(uid: String)

Uninstall a Log instance.