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
myStringin thejsonobject of each item. - The value of
myStringwill 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
myStringfield 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
errorproperty to the output for that item. - If "Continue On Fail" is not enabled, the workflow will stop on error and display an error message.
- If the "My String" property is left empty, the
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.