Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

FileAppender.ExclusiveLock.OpenFile�Method�

Open the file specified and prepare for logging.

[Visual�Basic]
Overrides�Public�Sub�OpenFile( _
���ByVal filename�As�String,�_
���ByVal append�As�Boolean,�_
���ByVal encoding�As�Encoding�_
)
[C#]
public�override�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.ExclusiveLock Class | log4net.Appender Namespace