Patrick-Harms opened a new issue, #3352:
URL: https://github.com/apache/logging-log4j2/issues/3352

   I have a server application that consists of many separate processes 
(sometimes 20+) that use Log4J2 for logging and based on the number need to log 
to a central Log4J2 rolling file appender. A rolling file appender, as per 
usual is needed, to keep on top of disc space consumed by logging.
   
   The "out of the box" Log4J2 rolling file appender has concurrency issues, 
when multiple processes (and I have caused issues with just two instances). 
   
   The issue, at initial investigation, is that all the processes want to be 
Master, and roll the file. That causes an error, and on the next log message, 
the process then gets a hard error that the stream is closed.
   
   Does anyone know of a configuration sharing the same destination log file?
   
   Or do I need to write my own custom appender to handle concurrency issues?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to