Logger Node

This node helps developers with debugging.

Overview

The Logger Node is designed to assist developers with debugging workflows in n8n. It allows you to log a custom string message for each input item, making it easier to trace data flow or inspect values at specific points in your automation. This node is particularly useful during workflow development and troubleshooting, where visibility into intermediate data is essential.

Practical Example:
You can use this node to output the value of a variable or field at a certain step in your workflow, helping you verify that previous nodes are working as expected.

Properties

Name Type Meaning
My String String The description text (custom message).

Output

  • The node outputs the same items it receives, but adds or updates a property called myString in the json object of each item.
  • The value of myString will be whatever was provided in the "My String" input property.

Example Output:

{
  "json": {
    "...": "...",
    "myString": "Your custom message"
  }
}

Dependencies

  • No external services or API keys are required.
  • No special n8n configuration is necessary.

Troubleshooting

  • Common Issues:

    • If the "My String" property is left empty, the myString field in the output will also be empty.
    • If an error occurs while processing an item and "Continue On Fail" is enabled, the node will add an error property to the output for that item.
    • If "Continue On Fail" is not enabled, the workflow will stop on error and display an error message.
  • Error Messages:

    • Errors related to missing or invalid parameters will result in a standard n8n error, referencing the problematic item index.
    • If an unexpected error occurs, the error will be attached to the output item if "Continue On Fail" is enabled.

Links and References

Discussion