log4net SDK Reference

FileAppender.MinimalLock Class

Acquires the file lock for each write

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

System.Object
   log4net.Appender.FileAppender.LockingModelBase
      log4net.Appender.FileAppender.MinimalLock

[Visual Basic]
Public Class FileAppender.MinimalLock
    Inherits LockingModelBase
[C#]
public class FileAppender.MinimalLock : LockingModelBase

Thread Safety

This type is not safe for multithreaded operations.

Remarks

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.

Requirements

Namespace: log4net.Appender

Assembly: log4net (in log4net.dll)

See Also

FileAppender.MinimalLock Members | log4net.Appender Namespace