Here is a smaller piece of code...
public static void main(String[] args) {
String rechost="foor.bar";
String recuid="userid";
String recpwd="password";
try {
Logger.setLevel(Level.ALL);
Logger.addAppender(new FileAppender("C:\\ttt.txt"));
Logger.addAppender(new StandardOutputAppender());
System.setProperty("edtftp.log.log4j","true");
FTPClient ftp = null;
ftp = new FTPClient(rechost);
} catch (Exception e) {
System.out.println("Error "+e);
}
}
When I run this I get two warnings, again no output, but two warnings...
log4j:WARN No appenders could be found for logger (com.enterprisedt.net.ftp.FTPControlSocket).
log4j:WARN Please initialize the log4j system properly.