klyn.logging.LogEvent.LogEvent
constructor
public LogEvent(
timestamp as Timestamp,
level as LogLevel,
logger as String,
message as String,
fields as LogFields = null,
exception as Exception = null,
source as LogSource = null,
traceId as String = "",
spanId as String = ""
):
Description

Creates an immutable event.

Parameters
ParameterDescription
timestampEvent instant.
levelSeverity.
loggerLogger name.
messageMessage text.
fieldsStructured fields.
exceptionOptional exception.
sourceOptional source location.
traceIdOptional trace identifier.
spanIdOptional span identifier.
Example

event = LogEvent(Timestamp.now, LogLevel.INFO, "app", "Ready")