pm2-logrotate
pm2-logrotate copied to clipboard
Log files are created and deleted instantly
Hello, I noticed that there is no log files saved since jan 01. And tonight I saw this:
I am using default config
I know this is a very, very old post, but I came here because I'm having exactly the same problem. Did you ever figure it out?
I ended up using logrotate Example: /etc/logrotate.d/app
/path-to-log-file
/path-to-another-log-file
{
daily
rotate 30
missingok
notifempty
copytruncate # very important when using pm2
compress
}
Having same issue
Currently trying to increase retain value