Prepares to open the file when the first message is logged.
Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
Parameters
- filename
- Type: SystemString
The filename to use - append
- Type: SystemBoolean
Whether to append to the file, or overwrite - encoding
- Type: System.TextEncoding
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