开发者

Log4j DailyRollingFileAppender concurrency with multiple processes

开发者 https://www.devze.com 2022-12-16 06:35 出处:网络
I have a number of identical processes that are writing to a single log file using a Log4j DailyRollingFileAppender. I am c开发者_C百科oncerned that multiple processes may try and roll the file and th

I have a number of identical processes that are writing to a single log file using a Log4j DailyRollingFileAppender. I am c开发者_C百科oncerned 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.


it is not advisible to let multiple processes access the same log file. mayhem will occur

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号