RollingFileAppenderRollFile Method Apache log4net™ SDK Documentation
Renames file fromFile to file toFile.

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax

protected void RollFile(
	string fromFile,
	string toFile
)

Parameters

fromFile
Type: SystemString
Name of existing file to roll.
toFile
Type: SystemString
New name for file.
Remarks

Renames file fromFile to file toFile. It also checks for existence of target file and deletes if it does.

See Also

Reference