Double logging

Open
#5,517 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, nodejs
Domain
cli

Research direction

Reproduce the issue with pm2 start app.js -l mylog.log and compare it with the -o and -e form described in the report. Trace the CLI handling of -l, -o, and -e, then verify that the selected logging configuration does not write each message to both mylog.log and .pm2/logs/ while preserving separate stdout and stderr behavior.

Written by the indexing model from the issue text.

Description

Hello.

I'm using pm2 v.5.2.2
After the following command:
pm2 start app.js -l mylog.log
I have my logs being written twice:

  1. my location: mylog.log
  2. .pm2/logs/ location, out and err are separate

Doing pm2 start app.js -o mylog.log -e mylog.log fixes the problem, but nevertheless.
You might want to fix that this double logging.

Thank you.

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

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.

More from Unitech/pm2

All issues in Unitech/pm2

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.