ApexLog

Represents a debug log containing information about a transaction, including information about Apex, Visualforce, and workflow and validation rules. This object is available in API version 19.0 and later.

Supported Calls

delete(), describeSObjects(), query(), retrieve()

Fields

Field Details
Application
Type
string
Properties
Filter, Group, Sort
Description
This value depends on the client type that triggered the log.
  • For API clients, this value is the client ID.
  • For browser clients, this value is Browser.
DurationMilliseconds
Type
int
Properties
Filter, Group, Sort
Description
Duration of the transaction in milliseconds.
Location
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies the location of the origin of the log. Values are:
  • Monitoring—Log is generated as part of debug log monitoring. These types of logs are maintained for seven days or until a user deletes them.
  • SystemLog—Log is generated from the Developer Console. These types of logs are maintained for 24 hours or until the user clears them.
LogLength
Type
int
Properties
Filter, Group, Sort
Description
Length of the log in bytes.
LogUserId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the user whose actions triggered the debug log.
Operation
Type
string
Properties
Filter, Group, Sort
Description
Name of the operation that triggered the debug log, such as APEXSOAP, Apex Sharing Recalculation, and so on.
Request
Type
string
Properties
Filter, Group, Sort
Description
Request type. Values are:
  • API—Request came from the API
  • Application—Request came from the Salesforce user interface
StartTime
Type
dateTime
Properties
Filter, Sort
Description
Start time of the transaction.
Status
Type
string
Properties
Filter, Group, Sort
Description
Status of the transaction. This value is either Success, or the text of an unhandled Apexw exception.

Usage

You can read information about this object, as well as delete it, but you can't update or insert it.

See Also