Calling the error method

You can call the error method in any of the gateway's source files whenever you want to insert a log message of type ERROR into the log file specified in the MessageLog property for this gateway.

The following example shows a call to the error method:

.
.
.
logger.error("Target application unable to find the ticket. Please
             double-check if the ticket exists in the target
             application.");  1 
.
.
.
  1. Calls the error method, which writes the specified message to the log file specified in the MessageLog property for this gateway.