node pm2 log create rotate

pm2 logrotate -u user

/home/user/.pm2/pm2.log /home/user/.pm2/logs/*.log {
rotate 12
weekly
missingok
notifempty
compress
delaycompress
create 0640 user user
}

Leave a Reply

Your email address will not be published. Required fields are marked *