Logging
The adapter uses log4j to generate log files. The settings within the log4j configuration file will be used by the adapter to determine the type of messages to log. The following categories can be specified:
Error: Only error messages will be logged.
Info: Both Error and Info messages will be logged.
Debug: Error, Info, and Debug messages will be logged.
The Other property of the adapter can be used to set Verbosity to specify the amount of detail to be included in the log file, i.e.
Verbosity=4;
You can use Verbosity to specify the amount of detail to include in the log within a category. The following verbosity levels are mapped to the log4j categories:
0 = Error
1-2 = Info
3-5 = Debug
For example, if the log4j category is set to DEBUG, the Verbosity option can be set to 3 for the minimum amount of debug information or 5 for the maximum amount of debug information.
Note that the log4j settings override the Verbosity level specified. The adapter will never log at a Verbosity level greater than what is configured in the log4j properties. In addition, if Verbosity is set to a level less than the log4j category configured, Verbosity will default to the minimum value for that particular category. For example, if Verbosity is set to a value less than three and the Debug category is specified, the Verbosity will default to 3.
Here is a breakdown of the Verbosity levels and the information that they log:
1 - Will log the query, the number of rows returned by it, the start of execution and the time taken, and any errors.
2 - Will log everything included in Verbosity 1 and HTTP headers.
3 - Will additionally log the body of the HTTP requests.
4 - Will additionally log transport-level communication with the data source. This includes SSL negotiation.
5 - Will additionally log communication with the data source and additional details that may be helpful in troubleshooting problems. This includes interface commands.
Configure Logging for the Oracle Eloqua Adapter
By default, logging is turned on without debugging. If debugging information is desired, the following line from the TDV Server's log4j.properties file can be uncommented (default location of this file is: C:\Program Files\TIBCO\TDV Server <version>\conf\server).
log4j.logger.com.cdata=DEBUG
The TDV Server will need to be restarted after changing the log4j.properties file, which can be accomplished by running the composite.bat script located at C:\Program Files\TIBCO\TDV Server <version>\conf\server. Note reauthenticating to the TDV Studio will be required after restarting the server.
An example of the calls would be:
.\composite.bat monitor restart
All logs for the adapter will be written to the "cs_cdata.log" file as specified in the log4j properties.
Note the "log4j.logger.com.cdata=DEBUG" option is not required if the "Debug Output Enabled" option is set to true within the TDV Studio. To accomplish this, navigate to Administrator -> Configuration to display the configuration window. Then expand Server -> Configuration -> Debugging and set the Debug Output Enabled option to True.