Skip to main content

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​

InputTypeDescription
runEventWrites the message.
messageTextThe message to record. Defaults to empty text.
levelChoicedebug, info, warn or error. Defaults to debug.

Outputs​

OutputTypeDescription
doneEventContinues after logging. There is no data output.

Choose a level​

LevelUse for
DebugDetailed diagnostic messages.
InfoRoutine progress, such as a completed import.
WarnAn unexpected condition the workflow can continue past.
ErrorA 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.