log4net SDK Reference

RollingFileAppender.OpenFile Method 

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

[Visual Basic]
Overrides Protected Sub OpenFile( _
   ByVal fileName As String, _
   ByVal append As Boolean _
)
[C#]
protected override void OpenFile(
   string fileName,
   bool append
);

Parameters

fileName
the name of the file to open
append
true to append to existing file

Remarks

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

See Also

RollingFileAppender Class | log4net.Appender Namespace