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/>
    …
<appender/>

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

Advertisements

%d bloggers like this: