Skip to main content

LogRecord

@forge/monorepo


@forge/monorepo / backend/src / LogRecord

Type Alias: LogRecord

LogRecord = object

Defined in: backend/src/telemetry/index.ts:172

A structured log line.

event is a closed union of literals, not free text — see log-events.ts. That is the structural half of AC-5: a caller physically cannot put a prompt in the message, because the message is not a string it controls. The redaction allowlist then handles the fields. A denylist over free-text messages would be checking every line forever and losing the one added on a Friday.

Properties

at

readonly at: string

Defined in: backend/src/telemetry/index.ts:177


context

readonly context: TelemetryContext

Defined in: backend/src/telemetry/index.ts:175


event

readonly event: LogEvent

Defined in: backend/src/telemetry/index.ts:174


fields

readonly fields: Readonly<Record<string, AttributeValue>>

Defined in: backend/src/telemetry/index.ts:176


level

readonly level: LogLevel

Defined in: backend/src/telemetry/index.ts:173