Skip to content

@flarelog/sdk


@flarelog/sdk / LogEntry

Interface: LogEntry ​

Defined in: types.ts:18

A single log entry — backwards-compatible with v1, now with OTel-friendly optional fields.

Extended by ​

Properties ​

timestamp? ​

optional timestamp?: string

Defined in: types.ts:20

ISO 8601 timestamp. Defaults to current time if not provided.


level ​

level: LogLevel

Defined in: types.ts:22

Log severity level


message ​

message: string

Defined in: types.ts:24

Log message body


source? ​

optional source?: string

Defined in: types.ts:26

Source identifier (e.g., function name, route)


metadata? ​

optional metadata?: Record<string, unknown>

Defined in: types.ts:28

Arbitrary structured metadata


traceId? ​

optional traceId?: string

Defined in: types.ts:30

Trace ID for distributed tracing (W3C, 32 hex chars)


spanId? ​

optional spanId?: string

Defined in: types.ts:32

Span ID for distributed tracing (W3C, 16 hex chars)

Released under the MIT License.