Libraries v5.2.0
    Preparing search index...

    Interface LogEvent

    Represents a single structured log event in the pipeline.

    Log events carry both a human-readable rendered message and the original message template with structured property values, enabling both human-friendly display and machine-queryable structured search.

    interface LogEvent {
        eventId?: string;
        exception?: Error;
        level: LogLevel;
        messageTemplate: string;
        properties: Record<string, unknown>;
        renderedMessage: string;
        runInContext?: <T>(callback: () => T) => T;
        timestamp: Date;
    }
    Index
    eventId?: string

    Deterministic hex hash of messageTemplate — maps to CLEF @i.

    exception?: Error

    The exception associated with this event, if any.

    level: LogLevel

    Severity level of the event.

    messageTemplate: string

    The raw message template with {Property} holes.

    properties: Record<string, unknown>

    Structured properties extracted from the template and enrichers.

    renderedMessage: string

    The fully interpolated, human-readable message.

    runInContext?: <T>(callback: () => T) => T

    Runs work in the originating execution context. Captured before queuing; function metadata is omitted by JSON serialization and output formatters.

    timestamp: Date

    ISO timestamp when the event occurred.