Skip to content

@flarelog/sdk


@flarelog/sdk / LogEntry

Interface: LogEntry

Defined in: types.ts:16

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:18

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


level

level: LogLevel

Defined in: types.ts:20

Log severity level


message

message: string

Defined in: types.ts:22

Log message body


source?

optional source?: string

Defined in: types.ts:24

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


metadata?

optional metadata?: Record<string, unknown>

Defined in: types.ts:26

Arbitrary structured metadata


traceId?

optional traceId?: string

Defined in: types.ts:28

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


spanId?

optional spanId?: string

Defined in: types.ts:30

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

Released under the MIT License.