Bug #16349

Logger shift_age of 0 disables shift_size

Added by bughit (bug hit) 11 months ago. Updated 10 months ago.

Target version:


shift_age is documented as: Number of old log files to keep, or frequency of rotation (daily, weekly or monthly). Default value is 0.
shift_size is documented: Maximum logfile size in bytes (only applies when shift_age is a number). Defaults to 1048576 (1MB).

Given the above, a shift_age of 0 should prevent the retention of old log files, but maximum size (shift_size) should still be enforced.

But it's not:

So either the behavior or the documentation is wrong.

Updated by hsbt (Hiroshi SHIBATA) 11 months ago

  • Assignee set to sonots (Naotoshi Seo)
  • Status changed from Open to Assigned

Updated by jeremyevans0 (Jeremy Evans) 10 months ago

I think this is a documentation bug, since the comment makes it explicit that shifting is always disabled if shift_age is 0. I submitted a pull request to update the documentation: .


Updated by jeremyevans0 (Jeremy Evans) 10 months ago

  • Status changed from Assigned to Closed

Also available in: Atom PDF