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
| Property | Type | Description | Defined in |
|---|---|---|---|
attributes? | Attributes | Additional 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.message | string | - | src/lib/logging/types.ts:166 |
error.name | string | - | src/lib/logging/types.ts:165 |
error.stack? | string | - | src/lib/logging/types.ts:167 |
level | LogLevel | Severity level of the log. | src/lib/logging/types.ts:134 |
message | string | Human-readable log message. | src/lib/logging/types.ts:139 |
module? | string | Module or component that emitted the log. | src/lib/logging/types.ts:159 |
runtime | Runtime | The runtime where this log was created. | src/lib/logging/types.ts:144 |
timestamp | number | Unix timestamp in milliseconds when the log was emitted. | src/lib/logging/types.ts:129 |
trace? | TraceContext | Trace context for correlation. | src/lib/logging/types.ts:149 |