Skip to main content

LogRecord

Defined in: src/lib/logging/types.ts:125

A structured log record compatible with OTLP Log Data Model.

See

https://opentelemetry.io/docs/specs/otel/logs/data-model/

Properties

PropertyTypeDescriptionDefined in
attributes?AttributesAdditional structured attributes.src/lib/logging/types.ts:154
error?{ message: string; name: string; stack?: string; }Error details if this is an error log.src/lib/logging/types.ts:164
error.messagestring-src/lib/logging/types.ts:166
error.namestring-src/lib/logging/types.ts:165
error.stack?string-src/lib/logging/types.ts:167
levelLogLevelSeverity level of the log.src/lib/logging/types.ts:134
messagestringHuman-readable log message.src/lib/logging/types.ts:139
module?stringModule or component that emitted the log.src/lib/logging/types.ts:159
runtimeRuntimeThe runtime where this log was created.src/lib/logging/types.ts:144
timestampnumberUnix timestamp in milliseconds when the log was emitted.src/lib/logging/types.ts:129
trace?TraceContextTrace context for correlation.src/lib/logging/types.ts:149