Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
in Java FTP by (140 points)
We're running an old version of jboss 4.2.0.GA_CP06, and I can't get debug output from edtFTPj/PRO version 5.0.1.  I've tried adding:



-Dedtftp.log.level=ALL -Dedtftp.log.log4j=true -Dedtftp.log.prefix=com.enterprisedt. with entries in jboss-log4j.xml file to add the logger.

I don't see any log messages from enterprisedt.

1 Answer

0 votes
by (48k points)

This is a hard one because obviously we can't ask for logging in order to diagnose the problem, which is the normal approach for just about any other problem.

Since we can't do that, how about downloading the open-source of the product, i.e. edtFTPj/Free, and experimenting with the com.enterprisedt.util.debug.Logger class?  You don't need the whole library - just the classes in the com.enterprisedt.util.debug package.  In particular, search for the variable, useLog4j, to see find the places where the log4j integration is implemented.  Notice that, in order to avoid an explicit dependency on log4j we've used reflection to call into it.  The setupLog4j() method collects a set of references to the logging methods and stores them in the logMethods array.  These are then called from the log4jLog() method when required.