pm2-logrotate icon indicating copy to clipboard operation
pm2-logrotate copied to clipboard

`pm2 set pm2-logrotate:max_size 1K` doesn't work, logs are not rotated

Open pubmikeb opened this issue 3 years ago • 2 comments

I set pm2 set pm2-logrotate:max_size 1K and expect that log will be rotated (flushed) every time log file reaches 1 KB but in fact it doesn't happen.

Perhaps, related to https://github.com/keymetrics/pm2-logrotate/issues/169.

pubmikeb avatar Jun 25 '21 14:06 pubmikeb

max_ size applies to the size of a single file. You should also set the value of retain, but this setting does not take effect on my Windows Server

JxJPu9bD avatar Jul 22 '23 14:07 JxJPu9bD

This settings doesn't works with me too. I've set 10G but it always rotate by default config (10M) zzz

nguyenngoc2505 avatar Nov 14 '23 03:11 nguyenngoc2505