Unitech / Unitech/pm2

In cluster mode, pm2 print some npm package logs to pm2.log ,but not print to the child_process's log

Open
#4,953 0 comments 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.