pm2-logrotate | Automatically rotate all applications logs managed by PM2 | Cron Utils library
kandi X-RAY | pm2-logrotate Summary
kandi X-RAY | pm2-logrotate Summary
PM2 module to automatically rotate logs of processes managed by PM2.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- The write function
- Delete old files
- Format a number to a unit .
- Update the size of a folder for logging
- Process a single file
- Process appenders .
- Get max size .
- Update total count .
pm2-logrotate Key Features
pm2-logrotate Examples and Code Snippets
Community Discussions
Trending Discussions on pm2-logrotate
QUESTION
I am writing an ansible playbook to perform various pm2 functions.
I have searched a bit and cannot find an example of someone setting up pm2-logrotate.
I believe I am close but I'm not sure my shell commands are working. When I ssh into the child node and run sudo pm2 ls
it says In-memory PM2 is out-of-date, do: $ pm2 update
even though I am running that command from my playbook. What am I missing here?
ANSWER
Answered 2021-May-24 at 22:03I was mixing up the users on my server. I fixed this by specifying to run as ubuntu for the update command.
QUESTION
I am currently using a PM2 ecosystem file ecosystem.config.js
to start multiple Node.js apps using PM2.
ANSWER
Answered 2020-Jul-06 at 08:03It is not possible. Based on pm2-logrotate
author:
It's not possible apparently since pm2-logrotate is different than pm2, pm2 is not aware beforehand if pm2-lr is already installed or not.
Source: https://github.com/keymetrics/pm2-logrotate/issues/131
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pm2-logrotate
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page