The FtpTraceLog method causes all FTP commands and responses in the current trace buffer to be written to a log file.


                                   +--, "REPLACE"--+



The filename and optional path to the log file.


If this argument is given then if the log file exists it will be replaced. The default is to append the trace output to the log file. Only the first letter of the argument is significant.

Return Values:

A value of 0 indicates successful execution of the method. The value -1 indicates an error. You can get the specific error code by inspection of the method FtpErrno. Possible values:


The internal FTP command or the arguments to the method are in error.