vladislav-dobzinski-etr opened a new issue, #236:
URL: https://github.com/apache/logging-log4net/issues/236

   I'm using log4net for .NET Framework version 2.0.8
   
   RollingFileAppender is used with CountDirection=1
   
   On startup log4net enumerates existing rollback files and sets 
curSizeRollBackups
   
   Sometimes log4net does not discover **ALL** existing rollback files and then 
new rollback is created, deletes an existing file and creates new rollback. 
This behavior causes gaps in logs.
   
   In attached log4net internal debug file there are issues with B7EBL.log.455, 
B7EBL.log.459, B7EBL.log.460 files
   Files **B7EBL.log.455** and **B7EBL.log.459** were not discovered and 
curSizeRollBackups was not set correctly
   
   ```
   log4net: File name [b7ebl.log.450] moves current count to [450]
   log4net: curSizeRollBackups starts at [450]
   ...
   log4net: Deleted file [E:\zurnalai\B7Logs\B7EBL.log.455]
   log4net: Moving [E:\zurnalai\B7Logs\B7EBL.log] -> 
[E:\zurnalai\B7Logs\B7EBL.log.455]
   ...
   log4net: File name [b7ebl.log.458] moves current count to [458]
   log4net: curSizeRollBackups starts at [458]
   ...
   log4net: Deleted file [E:\zurnalai\B7Logs\B7EBL.log.459]
   log4net: Moving [E:\zurnalai\B7Logs\B7EBL.log] -> 
[E:\zurnalai\B7Logs\B7EBL.log.459]
   ...
   log4net: Deleted file [E:\zurnalai\B7Logs\B7EBL.log.460]
   log4net: Moving [E:\zurnalai\B7Logs\B7EBL.log] -> 
[E:\zurnalai\B7Logs\B7EBL.log.460]
   ```
   
   [log4net.log](https://github.com/user-attachments/files/19507909/log4net.log)


-- 
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