Captured log entry with metadata including severity level, timestamp, and group hierarchy.

export interface LogEntry {
/** Unique identifier for the log entry. */
id: string;
/** Log severity level based on the originating console method. */
level: LogLevel;
/** Primary message extracted from the first argument. */
message: string;
/** Additional details derived from remaining console arguments. */
details: string[];
/** ISO timestamp representing when the log entry was captured. */
timestamp: string;
/** Optional stack trace snippet to help identify the source of the log. */
source?: string;
/** Whether the entry is considered a debug-only message. */
isDebug?: boolean;
/** Hierarchical path of console groups this log belongs to. Empty array if not in a group. */
groupPath?: string[];
/** Nesting depth of the log within groups (0 = top-level, 1 = nested once, etc.). */
groupDepth?: number;
}
interface LogEntry {
    id: string;
    level: LogLevel;
    message: string;
    details: string[];
    timestamp: string;
    source?: string;
    isDebug?: boolean;
    groupPath?: string[];
    groupDepth?: number;
}

Properties

id: string

Unique identifier for the log entry.

level: LogLevel

Log severity level based on the originating console method.

message: string

Primary message extracted from the first argument.

details: string[]

Additional details derived from remaining console arguments.

timestamp: string

ISO timestamp representing when the log entry was captured.

source?: string

Optional stack trace snippet to help identify the source of the log.

isDebug?: boolean

Whether the entry is considered a debug-only message.

groupPath?: string[]

Hierarchical path of console groups this log belongs to. Empty array if not in a group.

groupDepth?: number

Nesting depth of the log within groups (0 = top-level, 1 = nested once, etc.).