Skip to main content

Module structured_json_logger

Module structured_json_logger 

Source
Expand description

Structured JSON logger for durable execution.

This module provides a StructuredJsonLogger that emits structured JSON log entries to stdout, matching the Node.js DefaultLogger output format. Each log entry includes execution context (requestId, executionArn, tenantId) and optional operation metadata (operationId, attempt, error details).

§Requirements

  • 9.1: Output is valid JSON to stdout
  • 9.2: Contains level, timestamp, requestId, executionArn, message
  • 9.3: Includes tenantId when configured
  • 9.4: Includes operationId from LogInfo
  • 9.5: Level filtering via min_level

Structs§

JsonLogContext
Context fields included in every JSON log entry.
StructuredJsonLogger
Structured JSON logger for durable execution.

Enums§

LogLevel
Log level for filtering structured JSON output.