Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3k views
in Java FTP by
My application uses log4j, too. But instead of coding we configure all settings through a log4j.properties file to let the user change the logging.

How can I configure the edtftpj loggers in this file?
I tried to use:
com.enterprisedt=DEBUG

but I still do not see log messages in the command line output.

FYI: the stdout uses a console appender:
log4j.rootLogger=debug, stdout1
log4j.appender.stdout1=org.apache.log4j.ConsoleAppender
log4j.appender.stdout1.layout=org.apache.log4j.PatternLayout

Am I missing something?

1 Answer

0 votes
by (162k points)
You also need to direct edtFTPj to use log4j - see the dev guide for more details.

My application uses log4j, too. But instead of coding we configure all settings through a log4j.properties file to let the user change the logging.

How can I configure the edtftpj loggers in this file?
I tried to use:
com.enterprisedt=DEBUG

but I still do not see log messages in the command line output.

FYI: the stdout uses a console appender:
log4j.rootLogger=debug, stdout1
log4j.appender.stdout1=org.apache.log4j.ConsoleAppender
log4j.appender.stdout1.layout=org.apache.log4j.PatternLayout

Am I missing something?

Categories

...