Search code examples
javalogginglogback

Disable logback log file deletion by setting maxHistory to zero


I am trying to disable the log file deletion in logback.

I searched the documentation but found no way to accomplish this.

However, the source code seems to depend on maxHistory flag set to 0 which means unbounded history. see and see.

but hence I cannot find it documented anywhere, I am afraid to use so to be changed in the future without any declarations!

So my question, is it documented somewhere I don't know about?


Solution

  • Thank you for reporting this. This is now fixed as can be seen in the relevant documentation