I have a number of identical processes that are writing to a single log file using a Log4j DailyRollingFileAppender
. I am concerned that multiple processes may try and roll the file and that chaos will ensue. Does the implementation allow for this using with some kind of locking mechanism? – the Javadoc doesn't mention it.
Java – Log4j DailyRollingFileAppender concurrency with multiple processes
concurrencyjavalog4j
Related Topic
- Java – Log4j dailyrollingfileappender file issues
- Java – Dealing with “Xerces hell” in Java/Maven
- Log4j : Multiple loggers, levels and appenders
- Java – Log4j – DailyRollingFileAppender – Are rolled files deleted after some amount of time
- Java – In log4j 1.2 to log4j 2 migration, what to do with the DailyRollingFileAppender class
Best Answer
it is not advisible to let multiple processes access the same log file. mayhem will occur