Nssm + Log user

Hello everyone,

I installed Node-RED a month ago and I'm testing it thoroughly.

For automatic startup, I'm using nssm.exe, which runs it as a service. This works very well, but there's a drawback: the connections made by the different clients aren't visible.

When starting with a command prompt session, the connection and disconnection logs were visible.

How can I see the connected clients once the service is running?

Thanks in advance for your help.

Hi @jlt57
Connections to what exactly?

The editor or dashboard?
Im not aware of anything triggered in the editor (I could be wrong)

I don't use dashboard (1 or 2), But I believe there are events you can capture, based on the connected web socket.

You can use nssm to configure the service to write the Node-RED console output to a log file (and to rotate them so they don't get too large).

Details are on the NSSM - the Non-Sucking Service Manager page (which is having problems at the moment, if you get a 504 error reload the page)

Hello everyone,

Thank you for your feedback.

I think I've configured NSSM for logging, but nothing is loading.

I'll check the link.

nssm set Node-RED AppParameters "-uc:\Users\P01JLHE.node-red > c:\logstartNodeRed\node-red.log"

I found a very interesting page on launching Node-RED, which I followed, changing a few parameters.

I now have the red-node logs and user disconnections, I don't understand why I don't have the connections, I'll look into it.

If this link can help others, all the better.

You haven't said what connections you are talking about. If you are talking about the flowfuse dashboard then I don't think it logs connections, only disconnections. I have always thought that a bit odd.

Hello,
yes, I was referring to the connections on the FlowFuse.
Indeed, we can see the disconnections, but not the connections, which is a real shame.
Perhaps there's a setting somewhere.
I'll run detailed logs with the -v argument to see if there's more information.