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 = "" ):
Creates an immutable event.
| Parameter | Description |
|---|---|
timestamp | Event instant. |
level | Severity. |
logger | Logger name. |
message | Message text. |
fields | Structured fields. |
exception | Optional exception. |
source | Optional source location. |
traceId | Optional trace identifier. |
spanId | Optional span identifier. |
event = LogEvent(Timestamp.now, LogLevel.INFO, "app", "Ready")