Add option to increase displayed log lines in pm2 monit
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
DISCLAIMER: This is a feature request so I can't use the given markdown template for new issues
Reasoning
If you use pm2 monit you only see a few log lines (in my case just 9) per process which is not really useful.
To make pm2 monit more useful it would be nice if you could configure how much log lines should be displayed for each process.
Desired Implementation
Add a lines option, which allows to display more lines for each process:
pm2 monit --lines 100
Considered Alternatives
I know you can use
pm2 logs --lines 100
but this is not really user-friendly if you want to monitor multiple processes at once.
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 at the CLI entry point for pm2 monit and trace how options reach the per-process log display. Compare its option handling with the existing pm2 logs --lines 100 behavior. Done means pm2 monit --lines 100 displays the requested number of log lines for each process without breaking the existing command.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- cli, observability
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 70/100