FileAppender LockingModelBase CurrentAppender Property | Apache log4net™ SDK Documentation

Gets or sets the FileAppender for this LockingModel

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public FileAppender CurrentAppender { get; set; }

    Public Property CurrentAppender As FileAppender
    	Get
    	Set

    public:
    property FileAppender^ CurrentAppender {
    	FileAppender^ get ();
    	void set (FileAppender^ value);
    }

    member CurrentAppender : FileAppender with get, set

#### Property Value

Type: FileAppender
The FileAppender for this LockingModel
Remarks

The file appender this locking model is attached to and working on behalf of.

The file appender is used to locate the security context and the error handler to use.

The value of this property will be set before OpenFile(String, Boolean, Encoding) is called.

See Also

#### Reference

FileAppender
LockingModelBase Class
log4net.Appender Namespace