Logger
The Logger action outputs messages or variable values for debugging and auditing purposes. Open any automation in Automation from the top navigation and click Add Condition, Record or Action to add a logger.
Log types
| Type | Description |
|---|---|
| Log Message | Output a static or templated message |
| Log Variable | Output the value of a specific variable or field |
Configuration
Log Message
| Field | Required | Description |
|---|---|---|
| Log Type | Yes | Select "Log Message" |
| Message | Yes | The text to log (supports variable interpolation) |
Example:
Message: User {{user.email}} was created at {{user.createdAt}}
Log Variable
| Field | Required | Description |
|---|---|---|
| Log Type | Yes | Select "Log Variable" |
| Variable to Log | Yes | The variable or field to output |
Example:
Variable to Log: {{user.role}}
Variable syntax
Reference data using double curly braces. Click the + icon next to input fields to select available fields and variables.
| Syntax | Description |
|---|---|
{{alias.field}} | Access a field from trigger or record |
{{variableName}} | Access a defined variable |
Use cases
Debugging during development:
Log Message: Automation triggered for order {{order.id}}
Audit trail:
Log Message: User {{user.id}} status changed to {{user.status}}
Testing conditions:
If: user.role = "admin"
Log Message: Admin user detected
Else:
Log Message: Regular user detected
Viewing logs
Logs are captured in your application's logging system. Check your backend logs or monitoring tools to view the output.
Best practices
- Add logs during development — Remove or reduce them before going live
- Include identifiers — Log IDs to trace specific records
- Use descriptive messages — Make it clear what the log represents
Related
- Mutations — Modify records after validating with logs
- Webhook — Call external services with verified data
- Conditions — Debug conditional logic with logging