How to check pm2 logs?

Hi Friends 👋, Welcome To Infinitbility! ❤️ Check pm2 logs To check pm2 logs run pm2 logs, it will show the last 15 lines of logs of all pm2 applications. pm2 logs To check more lines you can mention the desired number of lines like this pm2 logs --lines 100 Check pm2 logs for specific application To check logs for specific applications use pm2 logs APP_ID it will show logs only for mentioned app id....

October 20, 2022 · 1 min · Infinitbility

How to clear pm2 logs?

Hi Friends 👋, Welcome To Infinitbility! ❤️ Clear pm2 logs To clear whole pm2 logs run pm2 flush, it will clean all application logs. pm2 flush Clear pm2 logs for specfic application To clear logs for specific applications use pm2 flush APP_NAME or pm2 flush APP_ID it will clean logs only for mentioned app name or id. pm2 flush APP_ID pm2 flush APP_NAME Check the pm2 app id and app name To check pm2 app_id and app_name use pm2 status it will show the list of application ids, names, and their status....

October 20, 2022 · 1 min · Infinitbility