Log Record APIs

The Log Record APIs allow you to customize aspects of logging.

  • Writing and retrieving log records (successful operations are not logged).
  • Configuring log levels for messages reported to the console.
  • Enabling the printing of server message headers and message contents, database exceptions, and LogRecord objects written for each import.
  • Viewing detailed trace information on database calls.
  • The change log can be enabled or disabled with the EnableChangeLog and DisableChangeLog methods. You can retrieve the change log by calling the GetChangeLogs method.

Log records are automatically created when an operation replay fails in the Unwired Server. If an operation replay succeeds, there is no LogRecord created by default (note that an SAP default result checker may write a log record even when the SAP operation succeeds). To get the confirmation when an operation replay succeeds, register a CallbackHandler and implement the CallbackHandler.onReplaySuccess method. See Developer Guide: BlackBerry Object API Applications > Client Object API Usage > Callback and Listener APIs.