Closed MelvLee closed 3 months ago
Thank you for spotting that. Those the content gets persistent correctly with FileAccess.Write ?
Thank you for spotting that. Those the content gets persistent correctly with FileAccess.Write ?
I have used the fix since April and the logevents are still logged correctly
A LogEvent that leads to a writeBuffer with length > 4096 (DefaultFileStreamBufferLength) will not be persisted to file. This is caused by the following exception thrown in the IFileSink.EmitOrOverflow method of the SharedFileSink class in SharedFileSink.AtomicAppend.cs file
The exception is not thrown anymore when the Access property value is changed from FileAccess.ReadWrite to FileAccess.Write (line 105)
All unit tests are passing with this modification, but since I noticed the SharedFileSink class is marked as obsolete, I want to check if I should make a pull request for this modification. I see that the SharedFileSink is used when the shared parameter is set to true, which is how I have configured the file sink in my containerized application.