Docs
Sign in

Log

Log writes a message to the workflow's execution log, so you can see later what happened and why.

Screenshot to add: The Log settings panel with Log level, Message template, the data toggle and Destination.

When to use it

Use it to leave a trail: a step was reached, a value was found, or something unusual happened.

Settings

FieldWhat it doesNotes
Log levelHow serious the message isDebug, Info (default), Warning or Error
Message templateThe text to writeA Jinja2 template. Hint: use {{ output.field }} to reference upstream data
Attach data payload to logAdds data to the log entryA switch. On by default
Data expressionWhich data to attachShown only when the switch is on. A Jinja2 expression. Default {{ _prev_output }}
DestinationWhere the message goesExecution Log (default), Standard Output or External Endpoint
External endpoint URLWhere to send the messageShown only for External Endpoint. Placeholder https://logs.example.com/ingest

Inputs and outputs

  • One input at the top and one output at the bottom, so the data carries on to the next node.
  • The code shown does not describe the exact output data.

Example

Illustrative. Log level Info, Message template Order {{ output.order_id }} received. The message appears in the execution log with the previous node's output attached.

Tips

  • Use Debug for detail you only need while building, and Error for real problems.
  • Turn off Attach data payload to log if the data is large or private.
  • For colour and a prefix, see Console.