Why isn my rolling file appender properly rolling files or why does logging events get written to the old log file?
Most commonly this is due to multiple appenders attempting to use the same file path and most likely by having multiple independent instances of log4j read the same configuration file, however having the log file open by another process (an editor, backup utility) can also interfere with rolling. No provided file appender is reliable when multiple instances are writing to the same file path and java.io provides no mechanism to coordinate writing between JVM’s.