Forever logs keep growing

Viewed 3383

I run the NPM global module Forever on my Node server (on Azure). Always works fine to keep all my projects running.

There is 1 project on my server that perhaps has an issue or something that causes Forever to keep outputting to the log. There are 2 Forever logs that grow rapidly and to huge sizes:

9.7Gb  /home/azureuser/.forever/P_lf.log
1.3Gb  /home/azureuser/.forever/IEJR.log

Whilst I probably need to find out what's wrong with my project and fix it, I also need to fix this logging problem. My research shows I may need to do something with logrotate to stop this much disk space being used.

Any ideas?

1 Answers
Related