workflows.fit
Back to n8n workflows
n8n templateFreeBy Elodie Tasia

Create structured logging system with Supabase and Log4j2-style levels

Create centralized, structured logs directly from your n8n workflows, using Supabase as your scalable log database. Whether you're debugging a workflow, monitoring execution status, or tracking error events, this temp...

Data & StorageDevelopmentCore NodesSticky NoteExecute Workflow TriggerSupabaseError Trigger
Loading interactive preview...

Template notes

Create centralized, structured logs directly from your n8n workflows, using Supabase as your scalable log database.

Whether you're debugging a workflow, monitoring execution status, or tracking error events, this template makes it easy to log messages in a consistent, structured format inspired by Log4j2 levels (DEBUG, INFO, WARN, ERROR, FATAL).

You’ll get a reusable sub-workflow that lets you log any message with optional metadata, tied to a workflow execution and a specific node.

What this template does

- Provides a sub-workflow that inserts log entries into Supabase.

- Each log entry supports the following fields: - workflowname: Your n8n workflow identifier - nodename: last executed node - executionid: n8n execution ID for correlation - loglevel: One of DEBUG, INFO, WARN, ERROR, FATAL - message: Textual message for the log - metadata: Optional JSON metadata (flexible format)

- Comes with examples for diffrerent log levels: Easily call the sub-workflow from any step with a Execute Workflow node and pass dynamic parameters.

Use Cases