pm2 logrotate code example Example 1: pm2 logs pm2 logs <processname> Example 2: pm2 logs pm2 logs 'YOUR_PROCESS' --lines 1000