Skip to content

Log

Emits a structured automation log entry.

@lainstack/flow/log · Data

Use this block to write one entry into the run log so a person can see what happened. It always continues on out. The output is empty, so no later block can reference it.

  • level (info, warn, error, debug) only labels the entry. It does not fail or route the run. To stop the run, use @lainstack/flow/assert.
  • The message must be 1 to 2,000 characters.
  • The message and the optional details stay with the run. Do not put secrets in them.
  • Use details for structured fields. It is a Record, and detailsSchema must describe it exactly.
  • If the log cannot be written, the step fails with the retryable error log_emission_failed.
  • To name the run in the Runs list, use @lainstack/run/set-details, not a log entry.
Setting Key Type Details
Message (required) message Text Logged content is retained with the run. Do not include secrets.
Severity level One of Info, Warning, Error, Debug Choose the severity of the run-inspection entry. Default info.
Details details Record Optional typed details are retained with the run. Do not include secrets.