Log
Log writes a message to the workflow's execution log, so you can see later what happened and why.
Screenshot placeholder
When to use it
Use it to leave a trail: a step was reached, a value was found, or something unusual happened.
Settings
| Field | What it does | Notes |
|---|---|---|
| Log level | How serious the message is | Debug, Info (default), Warning or Error |
| Message template | The text to write | A Jinja2 template. Hint: use {{ output.field }} to reference upstream data |
| Attach data payload to log | Adds data to the log entry | A switch. On by default |
| Data expression | Which data to attach | Shown only when the switch is on. A Jinja2 expression. Default {{ _prev_output }} |
| Destination | Where the message goes | Execution Log (default), Standard Output or External Endpoint |
| External endpoint URL | Where to send the message | Shown 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.