Besides the basic and advanced logging features provided by TIBCO Adapter SDK, the adapter also supports logging through the
Log4J utility.
The
Log4J utility provides the following logging features:
- Dynamically change log levels without restarting or redeploying an adapter configuration.
- Maintain logging at the adapter configuration, adapter service level and adapter service instance level.
Note: The trace messages controlled by the configuration are only relevant to the packages and classes that the specific adapter service is using. Other trace messages are still output to the adapter log.
To using the
Log4j utility for logging, enable and specify the following properties in TIBCO Enterprise Administrator or the adapter TRA file:
- adr3.trace.extended
ON
- adr3.trace.log4j.properties
Log4jPropertiesFile_Name
The adapter provides a default Log4j properties file named as
adr3.log4j.properties, and the corresponding template file. They are located in the
TIB_ADR3_HOME/bin directory.
Note: To filter out specific trace messages, specify the
log4j.appender.default.exclude property in the adapter Log4J properties file. Wildcards are not supported and multiple error codes are specified using comma as the delimiter.