log4net SDK Reference

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(
   string filename,
   bool append,
   Encoding encoding
);

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