Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question regarding logging ❓ #5785

Open
supertick opened this issue Mar 16, 2024 · 1 comment
Open

Question regarding logging ❓ #5785

supertick opened this issue Mar 16, 2024 · 1 comment

Comments

@supertick
Copy link

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

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.

@ultimate-tester
Copy link

ultimate-tester commented Mar 21, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants