FileAppender File Property | Apache log4net™ SDK Documentation

Gets or sets the path to the file that logging will be written to.

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

C#
VB
C++
F#
Copy

    public virtual string File { get; set; }

    Public Overridable Property File As String
    	Get
    	Set

    public:
    virtual property String^ File {
    	String^ get ();
    	void set (String^ value);
    }

    abstract File : string with get, set
    override File : string with get, set

#### Property Value

Type: String
The path to the file that logging will be written to.
Remarks

If the path is relative it is taken as relative from the application base directory.

See Also

#### Reference

FileAppender Class
log4net.Appender Namespace