In cluster mode, pm2 print some npm package logs to pm2.log ,but not print to the child_process's log
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
What's going wrong?
In cluster mode, pm2 print some npm package logs to pm2.log ,but not print to the child_process logs
How could we reproduce this issue?
Run a nodejs app using pm2
console.log anything in the application
notice it goes to pm2.log instead of app's log file
Supporting information
$ pm2 report
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with a Node.js app in PM2 cluster mode, logging output with console.log, and run pm2 report for context. Trace why output reaches pm2.log instead of the child process's log file; done means application logs consistently appear in the child process log without incorrectly appearing in pm2.log.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli, observability
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100