Closed chehrlic closed 7 years ago
Imo it's a bug in log4j/log4cxx since it does unexpected things. But if you don't like it I would ask you to make at least openFile() virtual so I can create a custom appender.
If I think more about this case, you might right that this is a bug in log4j too, at least an unexpected behavior. I will accept the patch. thank you.
Thx for the quick response. I managed to check the log4cxx behavior - it really overwrites the logfile instead rolling. So the new/different behavior should be at least documented.
I documented the behavior change in the "Changes Differences to Log4j" section and in the ChangeLog.
When appendFile is set to false (which is the default), the RollingFileAppender did not roll the current log file which results in an unexpected logdata loss.