pm2 log code example
Example 1: pm2 logs
pm2 logs <processname>
Example 2: pm2 stop process
pm2 stop <processname>
Example 3: pm2 logs
pm2 logs 'YOUR_PROCESS' --lines 1000
pm2 logs <processname>
pm2 stop <processname>
pm2 logs 'YOUR_PROCESS' --lines 1000