RollingFileAppender OpenFile Method | Apache log4net™ SDK Documentation

Creates and opens the file for logging. If StaticLogFileName is false then the fully qualified name is determined and used.

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

C#
VB
C++
F#
Copy

    protected override void OpenFile(
    	string fileName,
    	bool append
    )

    Protected Overrides Sub OpenFile (
    	fileName As String,
    	append As Boolean
    )

    protected:
    virtual void OpenFile(
    	String^ fileName,
    	bool append
    ) override

    abstract OpenFile :
            fileName : string *
            append : bool -> unit
    override OpenFile :
            fileName : string *
            append : bool -> unit

#### Parameters

fileName
  Type: System
  String
  the name of the file to open
append
  Type: System
  Boolean
  true to append to existing file

Remarks

This method will ensure that the directory structure for the fileName specified exists.

See Also

#### Reference

RollingFileAppender Class
log4net.Appender Namespace