Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

FileAppender.MinimalLock.OpenFile�Method�

Prepares to open the file when the first message is logged.

[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.MinimalLock Class | log4net.Appender Namespace