Package com.avoka.tm.svc
Class ErrorLogger
java.lang.Object
com.avoka.tm.svc.ErrorLogger
Provides an Error Logger service which will log errors to the Transact error log database table.
Examples
Please find the email service examples about sending and queuing below.
Create Error Log Record For Transaction
The example below creates a Error Log record associated with the specified transaction record.
 new ErrorLogger()
      .setTxnId(txnId)
      .setError(error)
      .log() 
 Create 'Form Delivery' Log Record For Transaction
The example below creates a 'Form Delivery' type error log record associated with the specified transaction record.
 new ErrorLogger()
      .setError(error)
      .setType("Form Delivery")
      .setTxn(txn)
      .log() - Since:
- 5.0.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlog()Log the error creating an error log database record and return the error log record id.The error to log.Set the transaction to associate with the error log.Set the transaction record id to associate with the error log.Set the error log type property use to classify the error log record.
- 
Constructor Details- 
ErrorLoggerpublic ErrorLogger()
 
- 
- 
Method Details- 
setErrorThe error to log.- Parameters:
- error- the exception to log
- Returns:
- the error logger;
 
- 
setTypeSet the error log type property use to classify the error log record.- Collaboration Job
- Form Delivery
- Form Dynamic Data
- Form Render
- Form Submission
- LiveCycle
- Management
- Payment Gateway
- Receipt Render
- REST SOAP API
- Scheduled Job
- Security Manager
- T.Field Sync
- Unclassified
 - Parameters:
- type- the error log record type (required)
- Returns:
- the error logger
 
- 
setTxnSet the transaction to associate with the error log.- Parameters:
- txn- the transaction to associate with the error log
- Returns:
- the error logger
 
- 
setTxnIdSet the transaction record id to associate with the error log.- Parameters:
- txnId- the transaction record id to associate with the error log
- Returns:
- the error logger
 
- 
logLog the error creating an error log database record and return the error log record id.- Returns:
- the new error log record id
 
 
-