import com.enterprisedt.net.ftp.*;
import com.enterprisedt.util.debug.*;
public class FtpTest {
public static void main(String args[]) {
new FtpTest();
}
public FtpTest() {
Logger.setLevel(Level.OFF);
FTPClient ftp = null;
Logger.setLevel(Level.OFF);
String host = "some.host.com";
String user = "user";
String pwd = "pwd";
try {
ftp = new FTPClient(host);
ftp.login(user, pwd);
ftp.setType(FTPTransferType.BINARY);
String[] files = ftp.dir();
for (int i = 0; i < files.length; i++)
System.out.println(files[i]);
ftp.quit();
} catch (Exception e) {
System.out.println("ERROR: '" + e + "'");
}
}
} // End class
Are you using the log4j integration feature?
I'm afraid we can't help you much further if you don't post a simple program that illustrates the problem.