log node writes custom entries to runtime logs. Use it to track flow execution, debug issues, or record important events for monitoring.
Configuration
Config Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
level | string | No | "info" | Log level: debug, info, warn, error |
message | string | Yes | - | Log message (supports templates) |
data | object | No | - | Additional data to include in the log entry |
Log Levels
| Level | Use Case |
|---|---|
debug | Detailed debugging information |
info | General informational messages |
warn | Warning conditions that should be reviewed |
error | Error conditions that need attention |
Output
Examples
Basic Log
Log with Data
Debug Logging
Warning Log
Error Log
Log in Try-Catch
Log with Computed Values
Conditional Logging
Use with condition nodes to log only in specific scenarios:Viewing Logs
Log entries appear in the runtime logs section of the dashboard. You can:- Filter by log level (debug, info, warn, error)
- Search by message content
- View associated data fields
- Filter by time range
Log Retention
Log retention depends on your plan:| Plan | Retention |
|---|---|
| Free | 1 day |
| Hobby | 30 days |
| Pro | 90 days |
Sensitive Data
Be careful not to log sensitive information. Use log masking to automatically redact sensitive fields:******** in logs.
Related
- Project Settings - Configure log masking
- Try Node - Use log nodes in error handling
- Template Expressions - Reference values in messages