Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

FileAppender.LockingModelBase.OpenFile�Method�

Open the output file

[Visual�Basic]
MustOverride�Public�Sub�OpenFile( _
���ByVal filename�As�String,�_
���ByVal append�As�Boolean,�_
���ByVal encoding�As�Encoding�_
)
[C#]
public�abstract�void�OpenFile(
���stringfilename,
���boolappend,
���Encodingencoding
);

Parameters

filename
The filename to use
append
Whether to append to the file, or overwrite
encoding
The encoding to use

Remarks

Open the file specified and prepare for logging. No writes will be made until AcquireLock is called. Must be called before any calls to AcquireLock, ReleaseLock and CloseFile.

See Also

FileAppender.LockingModelBase Class | log4net.Appender Namespace