KLogging

open class KLogging : KLoggable

Deprecated

Use KLogger instead

Replace with

import io.github.oshai.kotlinlogging.KLogger
KLogger

A class with logging capabilities usage example:

class ClassWithLogging {
companion object: KLogging()
fun test() {
logger.info{"test ClassWithLogging"}
}
}

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val logger: KLogger

The member that performs the actual logging

Functions

Link copied to clipboard
open fun logger(): KLogger

get logger for the class

open fun logger(name: String): KLogger

get logger by explicit name