pm2 where does server log code example Example 1: pm2 logs pm2 logs <processname> Example 2: pm2 logs pm2 logs 'YOUR_PROCESS' --lines 1000