Gets or sets the LockingModel used to handle locking of the file.
Namespace: log4net.AppenderAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
public FileAppender..::..LockingModelBase LockingModel { get; set; }
public FileAppender..::..LockingModelBase LockingModel { get; set; }
Public Property LockingModel As FileAppender..::..LockingModelBase
Get
Set
Public Property LockingModel As FileAppender..::..LockingModelBase
Get
Set
public:
property FileAppender..::..LockingModelBase^ LockingModel {
FileAppender..::..LockingModelBase^ get ();
void set (FileAppender..::..LockingModelBase^ value);
}
public:
property FileAppender..::..LockingModelBase^ LockingModel {
FileAppender..::..LockingModelBase^ get ();
void set (FileAppender..::..LockingModelBase^ value);
}
Property Value
Type:
FileAppender LockingModelBase
The
LockingModel used to lock the file.
Gets or sets the LockingModel used to handle locking of the file.
There are three built in locking models, FileAppender ExclusiveLock, FileAppender MinimalLock and FileAppender InterProcessLock .
The first locks the file from the start of logging to the end, the
second locks only for the minimal amount of time when logging each message
and the last synchronizes processes using a named system wide Mutex.
The default locking model is the FileAppender ExclusiveLock.