Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

FileAppender.MinimalLock Class

Acquires the file lock for each write

For a list of all members of this type, see FileAppender.MinimalLock Members.


public�class�FileAppender.MinimalLock : LockingModelBase

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


Opens the file once for each AcquireLock/ReleaseLock cycle, thus holding the lock for the minimal amount of time. This method of locking is considerably slower than FileAppender.ExclusiveLock but allows other processes to move/delete the log file whilst logging continues.


Namespace: log4net.Appender

Assembly: log4net (in log4net.dll)

See Also

FileAppender.MinimalLock Members | log4net.Appender Namespace