Thanks for your quick reply. Sorry for not fully grasping, am somewhat new to Java and ftp using "Edtftpj".
For testing and a better understanding have created 3 Appenders:
Logger.setLevel(Level.ALL);
Logger.addAppender(new FileAppender("c:\\output.log"));
Logger.addAppender(new StandardOutputAppender());
Logger.addAppender(new StreamAppender(Edtftpj.outStream));
I have set up the outStream and a get method:
public String getOutStream() {
return outStream.toString();
}
private static OutputStream outStream = new OutputStream() {
private StringBuilder string = new StringBuilder();
public void write(int b) throws IOException {
this.string.append((char) b );
}
public String toString(){
return this.string.toString();
}
};
But it returns nothing. What am I doing wrong?