Log Event
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.
Constructors
Properties
Link copied to clipboard
Map of items current at the time of the event, to be displayed as structured data. If the message string was constructed from a template, there is one item per hole in the template
Link copied to clipboard
Extension property that extracts the list of items and stack trace if present in a LogEvent.
Link copied to clipboard
String stack trace information that may be included if an error or exception is associated with the event
Link copied to clipboard
Message template, if any, used to construct the message