Reputation: 594
I'm using log4net's RollingFileAppender for logging, it is working as expected except for the fact the rolled over files's last modified or accessed date time are not updated even thought file is renamed with [filename.log].[number] extension(rolled over).
Please check this link. https://i.sstatic.net/2FMea.jpg
I have another module which collects updated log files every 2 hours, the problem is if last modified date time or accessed date time are not updated then I can not determine how to get updated log files.
I came across this issue : https://blogs.technet.microsoft.com/filecab/2006/11/07/disabling-last-access-time-in-windows-vista-to-improve-ntfs-performance/
but I do not want to enable NtfsDisableLastAccessUpdate as it will result in overall decrease in performance of OS.
Environment Details are as follows:
My question is :
Upvotes: 2
Views: 167
Reputation: 594
I'm answering my own question.
There is no other way. I had to modify the log4net library as per my requirements.
Upvotes: 1