LogRecord API

LogRecord stores two types of logs.

This code executes an update operation and examines the log records for the Customer MBO:

int id = 101;
Customer result = Customer.findById(id);
result.setFname("newFname");
result.save();
result.submitPending();
SUP101DB.synchronize();
result = Customer.findById(id);
for(com.sybase.persistence.LogRecord logRecord : result.getLogRecords())
{
//Working with logRecord
}

The code in the log record is an HTTP status code. See Developer Guide: Android Object API Applications >Client Object API Usage >Exceptions > Handling Exceptions > HTTP Error Codes.

There is no logRecord generated for a successful operation replay. The Unwired Server only creates a logRecord when an operation fails.