FileAppender.LockingModelBase.OpenFile Method Apache log4netâ„¢ SDK Documentation
Open the output file

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public abstract void OpenFile(
	string filename,
	bool append,
	Encoding encoding
)
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