# PM2 Logrotate

**Project:** Sites | **Board:** Closed | **Votes:** 1
**URL:** https://roadmap.ploi.io/projects/2-site-level-requests/items/791-pm2-logrotate

---

PM2 has an custom logrotate module. As you mentioned on discord a while ago that you'd like to enhance NodeJS support in the future I'd suggest to ad a configuration therefore.

You could split the logs every day and keep the latest X days as you do with Nginx logs. Optionally this could even be configurable via the dashboard

https://github.com/keymetrics/pm2-logrotate
