# Display all apps logs in realtime
pm2 logs
# Display only `app_name` application logs
pm2 logs app_name
# Display new logs in json
pm2 logs --json
# Display 1000 lines of `app_name` log file
pm2 logs app_name --lines 1000
pm2 restart all --log-date-format "YYYY-D-MM HH:mm:ss"
pm2 logs <processname>
pm2 logs 'YOUR_PROCESS' --lines 1000
pm2 install pm2-logrotate