Logging to the n8n from my custom node

Describe the problem/error/question

how can I log stuff to my console from my n8n instance that I’m running, since I want to log data from my custom node, I cant seem to use the console.log as usual as it says I need to include dom, but is that recommended and allowed?

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.63.4
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Linux

hello @azka-zaydan

You can use a LoggerProxy for that
Logging | n8n Docs

Hello @barn4k, thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.