log4net SDK Reference

FileAppender.LockingModel Property

Gets or sets the LockingModel used to handle locking of the file.

[Visual Basic]
Public Property LockingModel As LockingModelBase
[C#]
public FileAppender.LockingModelBase LockingModel {get; set;}

Property Value

The LockingModel used to lock the file.

Remarks

Gets or sets the LockingModel used to handle locking of the file.

There are two built in locking models, FileAppender.ExclusiveLock and FileAppender.MinimalLock. The former locks the file from the start of logging to the end and the later lock only for the minimal amount of time when logging each message.

The default locking model is the FileAppender.ExclusiveLock.

See Also

FileAppender Class | log4net.Appender Namespace