Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.1k views
in Java FTP by (140 points)
I can't seem to get Logger to output to a text file. I'm not sure how exactly to declare the log file name and such. Any help would be appreciated. Thanks!

1 Answer

0 votes
by (162k points)
import com.enterprisedt.util.debug.FileAppender;
import com.enterprisedt.util.debug.Level;
import com.enterprisedt.util.debug.Logger;

Logger.setLevel(Level.DEBUG);

// log to a file 
Logger.addAppender(new FileAppender("output.log"));

Categories

...