public final class LogEvent:
Immutable event produced by a Logger and consumed by a LogHandler.
import klyn.logging import klyn.time event = LogEvent(Timestamp.now, LogLevel.INFO, "app", "Started") assert event.message == "Started"
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | exceptionexception as Exception |
Optional application exception. |
| public readonly property | fieldsfields as LogFields |
Immutable structured fields. |
| public readonly property | levellevel as LogLevel |
Event severity. |
| public readonly property | loggerlogger as String |
Hierarchical logger name. |
| public readonly property | messagemessage as String |
Human-readable message. |
| public readonly property | sourcesource as LogSource |
Source location supplied by the compiler when available. |
| public readonly property | spanIdspanId as String |
Span identifier inherited from the active context. |
| public readonly property | timestamptimestamp as Timestamp |
UTC instant at which the event was created. |
| public readonly property | traceIdtraceId as String |
Trace identifier inherited from the active context. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | LogEvent | Creates an immutable event. |