Log
Controlled node
Overview
Write a message to the workflow logs.
Log writes a message at a chosen severity level. Use it to trace progress, record useful counts and help diagnose a run.
Inputs
| Input | Type | Description |
|---|---|---|
| run | Event | Writes the message. |
| message | Text | The message to record. Defaults to empty text. |
| level | Choice | debug, info, warn or error. Defaults to debug. |
Outputs
| Output | Type | Description |
|---|---|---|
| done | Event | Continues after logging. There is no data output. |
Choose a level
| Level | Use for |
|---|---|
| Debug | Detailed diagnostic messages. |
| Info | Routine progress, such as a completed import. |
| Warn | An unexpected condition the workflow can continue past. |
| Error | A problem you want to highlight. |
Choosing Error does not fail or stop the workflow. Use Throw when the run should stop with an error.
Example
Use a Plain Text node with Processed {{count}} records. Connect its output to message, set level to Info, and trigger run after processing completes. Connect done to the next step.
Open the workflow's Logs tab to inspect messages. Entries include the node information, and different runs are colour-coded. Use filters or the invocation ID to isolate a run. See workflow logs.
Log useful, safe content
Non-text inputs use a simple text conversion. An object can become [object Object], rather than readable JSON. Use To Text or Encode JSON first when logging records or lists.
Avoid logging API keys, passwords or unnecessary personal data. Prefer short summaries and identifiers to entire documents.