rgoers edited a comment on issue #271: Proposed fix for LOG4J2-2610 rollover 
issue:
URL: https://github.com/apache/logging-log4j2/pull/271#issuecomment-502940112
 
 
   To echo Carter's comment, anytime multiple rollovers can occur within the 
"time window" there is a risk that the file being rolled over to will be 
replaced. As Carter states, simply adding %i to the pattern will prevent that 
as a counter will be appended to the file name. Without the counter it is up to 
the user to make sure the file cannot be rolled over multiple times within a 
time period. So using the size-based triggering policy with a file that has a 
timestamp but no counter will likely encounter problems whenever the file size 
triggers the rollover. Adding a sleep would not prevent this problem.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to