Skip to navigation

Experimental. For evaluation. Interfaces, configuration, and behavior may change incompatibly.

Emits structured script logs through the workflow logging system.

Prerequisites

  • None.

Setup

  • Loads automatically; no configuration needed.

Emit structured script logs through the session logger. Custom fields are emitted as top-level slog attributes. Workflow logs use Temporal’s replay-aware logger without scheduling activities.

Members

debug

logging.debug(message, fields?)

Log a message at debug level. Examples: logging.debug(“message”) or logging.debug(“message”, fields={“items”: 42}).

Parameters
messagestringThe message to log.
fields?optionaldict[string:any]Structured log fields.

error

logging.error(message, fields?)

Log a message at error level. Examples: logging.error(“message”) or logging.error(“message”, fields={“items”: 42}).

Parameters
messagestringThe message to log.
fields?optionaldict[string:any]Structured log fields.

info

logging.info(message, fields?)

Log a message at info level. Examples: logging.info(“message”) or logging.info(“message”, fields={“items”: 42}).

Parameters
messagestringThe message to log.
fields?optionaldict[string:any]Structured log fields.

warn

logging.warn(message, fields?)

Log a message at warn level. Examples: logging.warn(“message”) or logging.warn(“message”, fields={“items”: 42}).

Parameters
messagestringThe message to log.
fields?optionaldict[string:any]Structured log fields.