pm2 icon indicating copy to clipboard operation
pm2 copied to clipboard

Question regarding logging :question:

Open supertick opened this issue 1 year ago • 1 comments
trafficstars

Hello ! First of course, I want to thank all the maintainers for this great project. :bow:

I have an Electron/Express app which needs to manage sub processes. PM2 has been working great, but I'm wondering about how to stream stdout/stderr and stdin. As far as I can tell, the strategy is to log to file for stdout?

Is there another common library or way to watch and stream those logs back ? I can't seem to find anything in the JS API docs, although there seems to be ability to do advanced signaling, I'm still wondering how to handle standard input and output.

Regards.

supertick avatar Mar 16 '24 15:03 supertick

So PM2 takes stdout and stderr and stores them in corresponding log files. Can you explain your use case better so me and others can give you some suggestions?

ultimate-tester avatar Mar 21 '24 10:03 ultimate-tester