Class FTPLog

java.lang.Object
   |
   +----FTPLog

public class FTPLog
extends Object
The FTPLog class facilitates general logging (such as transfer statistics), error logging, and debug logging. Currently, all output goes to stdout.


Variable Index

 o DebugLevel
How much detail to include in debug output (NYI)
 o LogLevel
How much detail to include in general log output (NYI)

Constructor Index

 o FTPLog()

Method Index

 o DebugMsg(String)
A general purpose debugging mechanism.
 o LogMsg(String)
A general purpose logging mechanism.
 o LogTransfer(String, long, long)
Record a file transfer to the log (NYI)
 o SetDebugLevel(int)
 o SetLogLevel(int)

Variables

 o DebugLevel
 private int DebugLevel
How much detail to include in debug output (NYI)

 o LogLevel
 int LogLevel
How much detail to include in general log output (NYI)

Constructors

 o FTPLog
 public FTPLog()

Methods

 o SetLogLevel
 public void SetLogLevel(int Level)
 o SetDebugLevel
 public void SetDebugLevel(int Level)
 o LogTransfer
 public void LogTransfer(String File,
                         long Bytes,
                         long Seconds)
Record a file transfer to the log (NYI)

Parameters:
File - The name of the file transfered, including path
Bytes - The size of the file in bytes
Seconds - How many seconds the file transfer took
 o LogMsg
 public void LogMsg(String Message)
A general purpose logging mechanism.

 o DebugMsg
 public void DebugMsg(String s)
A general purpose debugging mechanism.