FileAppender.OpenFile Method
FileAppenderOpenFile Method Apache log4net™ SDK Documentation
Sets and opens the file where the log output will go. The specified file must be writable.

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

protected virtual void OpenFile(
	string fileName,
	bool append
)

Parameters

fileName
Type: SystemString
The path to the log file. Must be a fully qualified path.
append
Type: SystemBoolean
If true will append to fileName. Otherwise will truncate fileName
Remarks

If there was already an opened file, then the previous file is closed first.

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

See Also

Reference