RollingFileAppender DatePattern Property | Apache log4net™ SDK Documentation

Gets or sets the date pattern to be used for generating file names when rolling over on date.

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

C#
VB
C++
F#
Copy

    public string DatePattern { get; set; }

    Public Property DatePattern As String
    	Get
    	Set

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

    member DatePattern : string with get, set

#### Property Value

Type: String
The date pattern to be used for generating file names when rolling over on date.
Remarks

Takes a string in the same format as expected by SimpleDateFormatter.

This property determines the rollover schedule when rolling over on date.

See Also

#### Reference

RollingFileAppender Class
log4net.Appender Namespace