Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why isn my rolling file appender properly rolling files or why does logging events get written to the old log file?

0
Posted

Why isn my rolling file appender properly rolling files or why does logging events get written to the old log file?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123