The RenameServerLogFile method is used to rename or
delete the current log file. Note that this does not change the
current log file name or disable logging by the server. It only
changes the file name of the current log file, or removes the log file
if the lpszFileName parameter is NULL. This can be useful if
you want your server to perform log file rotation, archiving the
current log file. By renaming the current log file, the server will
automatically create a new log file with original file name.
This method must be used to rename or delete the current log file
while logging is active because the server holds an open handle on the
file. The application should not use the GetLogFile
method to obtain the log file name and then use the MoveFileEx
or DeleteFile Windows API functions with that file.
To disable logging, use the SetLogFile method and
specify the logging format as FTP_LOGFILE_NONE.