@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?
optionaltimestamp?: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?
optionalsource?:string
Defined in: types.ts:24
Source identifier (e.g., function name, route)
metadata?
optionalmetadata?:Record<string,unknown>
Defined in: types.ts:26
Arbitrary structured metadata
traceId?
optionaltraceId?:string
Defined in: types.ts:28
Trace ID for distributed tracing (W3C, 32 hex chars)
spanId?
optionalspanId?:string
Defined in: types.ts:30
Span ID for distributed tracing (W3C, 16 hex chars)