How to set up extended logging

As discussed in How to set up logging, edtFTPj/PRO has a logging API based on log4j. There are three basic system properties that control logging, as shown in the table below:

System Property Description Values
edtftp.log.level Controls the global logging level FATAL,ERROR, WARN,INFO,DEBUG,ALL,OFF
edtftp.log.log4j Controls log4j integration. Set to 'true' to enable log4j integration. true or false
edtftp.log.prefix Adds a prefix to all logger names for finer log4j control. a prefix string, e.g. 'com.enterprisedt.'

There are also additional (and more specialized) System properties that control lower levels of logging, primarily in the SSL/TLS and encryption classes. These properties control the amount of logging that the encryption and secure sockets libraries dump out. Altering these properties can cause a great deal of logging to occur, and they generally should not be modified.

The properties are kept in the com.enterprisedt.net.ftp.ssl package, in edtftpjssl.properties. This file is embedded in the library's jar file.

Each property can be overridden by setting it as a system property. It is not recommended to change the values set in the properties file itself.

System Property Description
Values
edtftp.log.cryptix.trace Controls Cryptix trace true or false
edtftp.log.cryptix.debug Controls Cryptix debug. true or false
edtftp.log.cryptix.slowdebug Controls Cryptix slow debug (extended dumps) true or false
edtftp.log.puretls.level Controls PureTLS logging level 0,1,2,4,8,16,32,64,256,65535