Unitech / Unitech/pm2

Question regarding logging :question:

Open
#5,785 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
43.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the JavaScript API documentation and the PM2 behavior around stdout, stderr, and stdin described in the issue. Determine whether streaming is supported through the API or whether the existing file-logging guidance is the intended approach, then document the supported usage and any limitations.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, express, javascript, nodejs
Domain
cli, documentation, tooling
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.