log4net SDK Reference

RollingFileAppender.RollFile Method 

Renames file fromFile to file toFile.

[Visual Basic]
Protected Sub RollFile( _
   ByVal fromFile As String, _
   ByVal toFile As String _
)
[C#]
protected void RollFile(
   string fromFile,
   string toFile
);

Parameters

fromFile
Name of existing file to roll.
toFile
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

RollingFileAppender Class | log4net.Appender Namespace