Open linker-err0r opened 6 years ago
Any news on this? How to logrotate and set log max size in pm2.config.js?
bump
Should I stop using pm2-runtime? Any solution for the log rotation?
it seems by default logs are disabled in pm2-runtime
see: https://pm2.keymetrics.io/docs/usage/docker-pm2-nodejs/#pm2-runtime-helper
Is there any difference running pm2-runtime in a docker container that might affect logrotate?
For example, here is my dockerfile:
Using this setup, I'm not seeing any log rotation happening in the pm2 logs found at
$HOME/.pm2/logs
. Is there something else I'm missing?