Managing Error Logging

Error logging captures processing errors that occur in the integration gateway. When an error occurs, the following information is logged:

  • Error level.

  • Description.

  • Message catalog entry information.

  • Stack trace identifying the problem.

  • IBRequest and IBResponse (if available).

The default location of the integration gateway error log is <PIA_HOME>\webserv\<DOMAIN>\applications\peoplesoft\PSIGW.war\errorLog.html.

Change the location of the log in the integrationGateway.properties file.

Error Logging Methods and Parameters

Invoke the logError method for integration gateway error logging:

logError (String Description, IBRequest, IBResponse, int ErrorLevel, Throwable)

Use the following parameters:

Parameter Description

Description

Specify a description as a string.

IBRequest

Specify the IBRequest for this transaction, if available. If not available, pass Null.

IBResponse

Specify the IBResponse for this transaction, if available. If not available, pass Null.

ErrorLevel

Specify whether the log is written to permanent storage. This determines the severity of the error. The ig.log.level property in the integrationGateway.properties file determines the log level that is currently in effect. If the ErrorLevel value that is passed here is less than or equal to the ig.log.level property setting, the error is written to the log file.

Values are:

  • 100: Language exception.

  • 1: Standard gateway exception.

  • 2: Warning.

The ig.errorLog.filename property in the integrationGateway.properties file determines the log file location.

Throwable

Specify the Java exception or error that is associated with the error. This is used to log the stack trace that is associated with the error.

The gateway manager and delivered listening connectors feature built-in error logging that invokes the logError method. The delivered target connectors do not feature built-in error logging, and instead generate errors to the gateway manager or listening connectors, where they are handled or logged.