log4net file locking

Normally a file appender locks the file it is writing to
so other processes can’t access it.You can release this lock by:

<appender name=“AppenderName type=log4net.Appender.FileAppender>
lockingModel type=log4net.Appender.FileAppender+MinimalLock/>

This method of locking is considerably slower than the default
but allows other processes to move/delete the log file whilst logging continues.


%d bloggers like this: