NormalizedLogEvent

data class NormalizedLogEvent(val level: LogLevel, val loggerName: String, val message: String?, val attributes: Map<String, String> = emptyMap(), val emittedEpochNanos: Long? = null)

A log event normalized to a platform-independent shape.

Each per-platform capture edge translates the platform's native log event into this common form before handing it to LogCapture. The edge is the only thing that differs across platforms; everything downstream of this type is shared common code.

Constructors

Link copied to clipboard
constructor(level: LogLevel, loggerName: String, message: String?, attributes: Map<String, String> = emptyMap(), emittedEpochNanos: Long? = null)

Properties

Link copied to clipboard

Structured key/value pairs attached to the event (the MDC-equivalent payload). Mapped onto the resulting LogRecord's attributes by CaptureConfig.attributeMapper.

Link copied to clipboard

An optional event time supplied by the source, in epoch nanoseconds. LogCapture.resolveAtEdge preserves it, or reads the injected clock when absent. This alone does not resolve an event: queued capture requires ResolvedLogEvent.

Link copied to clipboard

The event's level.

Link copied to clipboard

The originating logger's name (e.g. a fully-qualified class name).

Link copied to clipboard

The log message body, or null if the event carried no message.