PM2 set logs to compress and expire

Referring to the github README.md https://github.com/pm2-hive/pm2-logrotate


pm2 set pm2-logrotate:compress true
pm2 set pm2-logrotate:max_size 10M
pm2 set pm2-logrotate:retain 7

nJoy 😉

Write a Reply or Comment

Your email address will not be published.