Configuring the Log4J Log

The adapter supports two log types: the SDK log and the Log4J log. The SDK log is used by default. If you want to use the Log4J log, you have to set the adfiles.trace.extended property to ON in the adfilesagent.tra file.

The adapter provides a default adfiles.log4j.properties file, which is a sample for configuring the Log4J properties. The properties file is located in the TIB_ADFILES_HOME/bin directory.

Procedure

  1. In the adfilesagent.tra file, set the adfiles.trace.extended property to ON.
    This is to enable the Log4J log.
  2. Specify a path for the adfiles.trace.log4j.properties property, the default path is %TIB_ADFILES_HOME%/bin/adfiles.log4j.properties.
    This is to specify the path for the Log4J configuration file.
  3. Configure the adfilesagent.tra file, and invoke the refreshExtendedLogging() method in Hawk.

    This is to refresh the Log4J log without restarting the adapter whenever changes are made to the Log4J properties file.