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

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

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

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


that are the debug logs right?

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.

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?

I am sorry I don't understand that post.

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

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.

Ok sir got it

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

No there isn't.

One bodge sort of way is to start Node-RED with it sending its ouput to a file
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)

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.

In my case that Node Red running on Windows10, i found debug logs at C:\Users\User_name\AppData\Roaming\npm-cache_logs

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