NoCoLogger

Interface for logging from outside coroutines.

NoCoLogger is a working name for now.

Inheritors

Properties

Link copied to clipboard

Context items belonging to the logger.

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 debug(event: Any?)
open fun debug(event: NoCoLogger.() -> Any?)
open fun debug(template: String, vararg values: Any?)
open fun debug(message: String, items: EventItems)
open fun debug(throwable: Throwable, event: Any?)
open fun debug(throwable: Throwable, event: NoCoLogger.() -> Any?)
open fun debug(message: String, throwable: Throwable, items: EventItems)
open fun debug(throwable: Throwable, template: String, vararg values: Any?)
Link copied to clipboard
abstract fun e(template: String, vararg values: Any?): LogEvent

Evaluates a message template with the supplied values, returning LogEvent.

Link copied to clipboard
abstract fun emitEvent(level: Level, throwable: Throwable?, event: Any?, contextItems: EventItems = mapOf())

Emit an event after minimum level checking.

Link copied to clipboard
open fun error(event: Any?)
open fun error(event: NoCoLogger.() -> Any?)
open fun error(template: String, vararg values: Any?)
open fun error(message: String, items: EventItems)
open fun error(throwable: Throwable, event: Any?)
open fun error(throwable: Throwable, event: NoCoLogger.() -> Any?)
open fun error(message: String, throwable: Throwable, items: EventItems)
open fun error(throwable: Throwable, template: String, vararg values: Any?)
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
open fun fatal(event: Any?)
open fun fatal(event: NoCoLogger.() -> Any?)
open fun fatal(template: String, vararg values: Any?)
open fun fatal(message: String, items: EventItems)
open fun fatal(throwable: Throwable, event: Any?)
open fun fatal(throwable: Throwable, event: NoCoLogger.() -> Any?)
open fun fatal(message: String, throwable: Throwable, items: EventItems)
open fun fatal(throwable: Throwable, template: String, vararg values: Any?)
Link copied to clipboard
open fun info(event: Any?)
open fun info(event: NoCoLogger.() -> Any?)
open fun info(template: String, vararg values: Any?)
open fun info(message: String, items: EventItems)
open fun info(throwable: Throwable, event: Any?)
open fun info(throwable: Throwable, event: NoCoLogger.() -> Any?)
open fun info(message: String, throwable: Throwable, items: EventItems)
open fun info(throwable: Throwable, template: String, vararg values: Any?)
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 log(level: Level, event: Any?)
open fun log(level: Level, event: NoCoLogger.() -> Any?)
open fun log(level: Level, template: String, vararg values: Any?)
open fun log(level: Level, throwable: Throwable, event: Any?)
open fun log(level: Level, throwable: Throwable, event: NoCoLogger.() -> Any?)
open fun log(level: Level, throwable: Throwable, template: String, vararg values: Any?)

open fun log(level: Level, message: String, items: EventItems)

Log an event with a message and an explicit set of items.

open fun log(level: Level, throwable: Throwable, message: String, items: EventItems)

Log an event with an associated throwable, a message and an explicit set of items.

Link copied to clipboard
open fun minLevel(): Level

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

Link copied to clipboard
open fun trace(event: Any?)
open fun trace(event: NoCoLogger.() -> Any?)
open fun trace(template: String, vararg values: Any?)
open fun trace(message: String, items: EventItems)
open fun trace(throwable: Throwable, event: Any?)
open fun trace(throwable: Throwable, event: NoCoLogger.() -> Any?)
open fun trace(message: String, throwable: Throwable, items: EventItems)
open fun trace(throwable: Throwable, template: String, vararg values: Any?)
Link copied to clipboard
open fun warn(event: Any?)
open fun warn(event: NoCoLogger.() -> Any?)
open fun warn(template: String, vararg values: Any?)
open fun warn(message: String, items: EventItems)
open fun warn(throwable: Throwable, event: Any?)
open fun warn(throwable: Throwable, event: NoCoLogger.() -> Any?)
open fun warn(message: String, throwable: Throwable, items: EventItems)
open fun warn(throwable: Throwable, template: String, vararg values: Any?)