BaseLogger

interface BaseLogger

Base interface of Klogger interface for use in coroutines, and NoCoLogger interface when not using coroutines.

Inheritors

Properties

Link copied to clipboard
abstract val name: String

Name of the logger: usually a class name in Java.

Functions

Link copied to clipboard
open fun eventFrom(context: String? = null, level: Level, throwable: Throwable? = null, eventObject: Any? = null, contextItems: EventItems = mapOf()): LogEvent

Construct a LogEvent from a range of types.

Link copied to clipboard

Is this logger enabled to emit DEBUG events?

Link copied to clipboard

Is this logger enabled to emit ERROR events?

Link copied to clipboard

Is this logger enabled to emit FATAL events?

Link copied to clipboard

Is this logger enabled to emit INFO events?

Link copied to clipboard
open fun isLevelEnabled(level: Level): Boolean

Check whether this logger will emit log events at the specified logging level.

Link copied to clipboard

Is this logger enabled to emit TRACE events?

Link copied to clipboard

Is this logger enabled to emit WARN events?

Link copied to clipboard
open fun minLevel(): Level

Minimum level at which to emit log events, determined from current configuration.