# Where I can get the debug logs of node-red?

**URL:** <https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712>\
**Category:** General\
**Created:** [20 September 2019 10:11 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712 "2019-09-20T10:11:06Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [20 September 2019 10:11 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/1 "2019-09-20T10:11:06Z")

</div>

Hello,  
Where I can find the debug logs of node-red in windows?  
And I'm using the command "node-red" for starting the node-red

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [20 September 2019 10:18 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/2 "2019-09-20T10:18:02Z")

</div>

Node-RED logs to the console where you ran the `node-red` command.

---

<div class="post-metadata">

**Author:** ![Nxito](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nxito/32/88293_2.png) [@Nxito](https://discourse.nodered.org/u/Nxito)\
**Post date:** [20 September 2019 11:42 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/3 "2019-09-20T11:42:43Z")

</div>

In windows, I do several types of logs: for the nodes, the console, nssm service ... To make a record of the console what I do is use the FS library in the "logging" section of the settings.js file

you could try to create a custom logger

[https://nodered.org/docs/user-guide/runtime/logging](https://nodered.org/docs/user-guide/runtime/logging)

---

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [22 September 2019 09:50 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/4 "2019-09-22T09:50:40Z")

</div>

that are the debug logs right?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 September 2019 10:02 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/5 "2019-09-22T10:02:42Z")

</div>

If you give us more information on exactly what you are looking for then it may help. That is assuming that the information provided by @knolleary did not help.

---

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [23 September 2019 04:49 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/6 "2019-09-23T04:49:57Z")

</div>

Yeah just I'm telling that, what @knolleary had been told to me that where i had ran the node-red command.Is that the debug logs I'm asking?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 September 2019 06:04 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/7 "2019-09-23T06:04:56Z")

</div>

I am sorry I don't understand that post.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [23 September 2019 06:05 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/8 "2019-09-23T06:05:08Z")

</div>

On windows, by default you only get output from the node-red command. To actually "log" it into a file, you can do something like `node-red > log.txt`

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [23 September 2019 06:17 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/9 "2019-09-23T06:17:01Z")

</div>

> [@Iliyas](#):
>
> Is that the debug logs I'm asking?

Node-RED only produces one log... The one I pointed you at.

You can change the level of detail in the log using the logging property in your settings file.

---

<div class="post-metadata">

**Author:** ![Iliyas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iliyas/32/19045_2.png) [@Iliyas](https://discourse.nodered.org/u/Iliyas)\
**Post date:** [23 September 2019 06:51 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/10 "2019-09-23T06:51:56Z")

</div>

Ok sir got it

---

<div class="post-metadata">

**Author:** ![nodecentral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodecentral/32/10432_2.png) [@nodecentral](https://discourse.nodered.org/u/nodecentral)\
**Post date:** [1 January 2020 11:32 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/11 "2020-01-01T11:32:50Z")

</div>

Is there any way to view/import/capture the logs via the Node Red web UI ?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [1 January 2020 11:47 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/12 "2020-01-01T11:47:16Z")

</div>

No there isn't.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [1 January 2020 12:43 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/13 "2020-01-01T12:43:35Z")

</div>

One bodge sort of way is to start Node-RED with it sending its ouput to a file  
e.g  
`node-red > /home/.pi/nrlog.txt`

and then using a file tail node to send it the the debug sidebar (but it obviously misses stuff until NR itself is up and running)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/6/65447081794fa441d846503b26c8dd8c7d403ad7.jpeg)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 January 2020 14:48 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/14 "2020-01-01T14:48:53Z")

</div>

If you are running on a linux system using the systemd service file to run node-red then the output is sent to /var/log/syslog so you could use a tail node on syslog and filter out non-node-red lines.

---

<div class="post-metadata">

**Author:** ![anuparp](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@anuparp](https://discourse.nodered.org/u/anuparp)\
**Post date:** [17 February 2021 02:23 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/15 "2021-02-17T02:23:44Z")

</div>

In my case that Node Red running on Windows10, i found debug logs at **C:\Users\User\_name\AppData\Roaming\npm-cache\_logs**

 ![Node_Red_log](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/d/8d239e752a08e6956047dd66c6b55225112b267f.png)

PS.  
I selected the lastest log file and compared all activities beween the last update (02/09/2021) and the previous one (05/18/2020) in order to solve the problems unable to start Node Red by command as follows.

npm uninstall node-red-contrib-gpio

02/09/2021 09:35 AM firmata  
02/09/2021 09:35 AM firmata-io  
02/09/2021 09:35 AM has-flag  
02/09/2021 09:35 AM johnny-five  
02/09/2021 09:35 AM lodash  
02/09/2021 09:35 AM lodash.clonedeep  
02/09/2021 09:35 AM lodash.debounce  
02/09/2021 09:35 AM mqtt-serial  
02/09/2021 09:35 AM nanotimer  
02/09/2021 09:35 AM socket.io-serial  
02/09/2021 09:35 AM supports-color  
02/09/2021 09:35 AM temporal  
02/09/2021 09:35 AM udp-serial  
02/09/2021 09:43 AM node-red-contrib-gpio  
02/09/2021 09:43 AM node-red-node-arduino  
02/09/2021 11:24 PM .  
02/09/2021 11:24 PM ..  
02/09/2021 11:24 PM formidable  
02/09/2021 11:24 PM node-red-contrib-ui-media  
02/12/2021 12:06 PM node-red-contrib-ui-led  
02/12/2021 12:15 PM node-red-contrib-ui-metabase  
02/14/2021 04:52 PM node-red-contrib-ui-artless-gauge  
02/14/2021 04:52 PM node-red-contrib-ui-etable  
02/14/2021 04:52 PM node-red-contrib-ui-heatmap

05/18/2020 03:31 PM abbrev  
05/18/2020 03:31 PM ansi-regex  
05/18/2020 03:31 PM aproba  
05/18/2020 03:31 PM are-we-there-yet  
05/18/2020 03:31 PM ascli  
05/18/2020 03:31 PM async-limiter  
05/18/2020 03:31 PM babel-runtime

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [17 February 2021 09:24 UTC](https://discourse.nodered.org/t/where-i-can-get-the-debug-logs-of-node-red/15712/16 "2021-02-17T09:24:35Z")

</div>


