Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

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(
���stringfromFile,
���stringtoFile
);

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