Package-level declarations

Log event and timestamp classes.

Types

Link copied to clipboard
typealias EventItems = Map<String, Any?>
Link copied to clipboard
data class LogEvent(val id: String = randomId(), val timestamp: Instant = timestampNow(), val host: String = hostname, val logger: String, val context: String? = threadContext(), val level: Level, val template: String? = null, val message: String, val stackTrace: String? = null, val items: EventItems = mapOf())

An event at a point in time with information about the running state of a program.

Functions

Link copied to clipboard
fun timestampNow(clock: Clock = System): Instant

Timestamp of "now" defined by clock. The default is the current system clock (time).