Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

FileAppender.SafeOpenFile�Method�

Sets and opens the file where the log output will go. The specified file must be writable.

[Visual�Basic]
Overridable�Protected�Sub�SafeOpenFile( _
���ByVal fileName�As�String,�_
���ByVal append�As�Boolean�_
)
[C#]
protected�virtual�void�SafeOpenFile(
���stringfileName,
���boolappend
);

Parameters

fileName
The path to the log file. Must be a fully qualified path.
append
If true will append to fileName. Otherwise will truncate fileName

Remarks

Calls OpenFile but guarantees not to throw an exception. Errors are passed to the ErrorHandler.

See Also

FileAppender Class | log4net.Appender Namespace