Package-level declarations
Base package containing interfaces and classes of the Klogging public API.
Types
Link copied to clipboard
interface BaseLogger
Base interface of Klogger interface for use in coroutines, and NoCoLogger interface when not using coroutines.
Link copied to clipboard
Logger interface for sending log events from suspend
functions running in Kotlin coroutines.
Link copied to clipboard
Interface for logging from outside coroutines.
Link copied to clipboard
interface NoCoLogging
Utility interface that supplies a NoCoLogger property called logger
.
Properties
Functions
Link copied to clipboard
Returns a Klogger with the name of the specified class.
fun logger(ownerClass: KClass<*>, otherLogger: BaseLogger?, vararg loggerContextItems: ContextItem): Klogger
Returns a Klogger with the specified name.
Link copied to clipboard
Returns a NoCoLogger with the name of the specified class.
inline fun <T> noCoLogger(otherLogger: BaseLogger?, vararg loggerContextItems: ContextItem): NoCoLogger
fun noCoLogger(name: String, otherLogger: BaseLogger?, vararg loggerContextItems: ContextItem): NoCoLogger
fun noCoLogger(ownerClass: KClass<*>, otherLogger: BaseLogger?, vararg loggerContextItems: ContextItem): NoCoLogger
Returns a NoCoLogger with the specified name.