Acquire the lock on the file
A stream that is ready to be written to.
Acquire the lock on the file in preparation for writing to it. Return a stream pointing to the file. ReleaseLock must be called to release the lock on the output file.
FileAppender.MinimalLock Class | log4net.Appender Namespace