ApexLog
Represents a debug log containing information about a transaction, including information about Apex, Visualforce, and workflow and validation rules.
Introduced in API version 19.0.
delete(), describeSObjects(), query(), retrieve()
-
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.
- Type: int
- Properties: Filter, Group, Sort
- Description: Duration of the transaction in milliseconds.
- Type: picklist
- Properties: Filter, Group, Nillable, Restricted picklist, Sort
- Description: Specifies the location of the origin of the log. Values are:
- Possible values:
- Monitoring — 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 — SystemLog — Log is generated from the Developer Console. These types of logs are maintained for 24 hours or until the user clears them.
- Type: int
- Properties: Filter, Group, Sort
- Description: Length of the log in bytes.
-
Type: reference
-
Properties: Filter, Group, Nillable, Sort
-
Description:
ID of the user whose actions triggered the debug log.
This is a polymorphic relationship field.
-
Relationship name: LogUser
-
Relationship type: polymorphic
-
Refers to: SelfServiceUser, User
- 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.
-
Type: string
-
Properties: Filter, Group, Sort
-
Description:
Request type. Values are:
API—Request came from the APIApplication—Request came from the Salesforce user interface
- Type: string
- Properties: Filter, Group, Nillable, Sort
- Introduced: API version 49.0
- Description: The unique identifier of the request that triggered the debug log. Use this request identifier to correlate multiple debug logs triggered by the same request.
- Type: datetime
- Properties: Filter, Sort
- Description: Start time of the transaction.
- Type: string
- Properties: Filter, Group, Sort
- Description: Status of the transaction. This value is either
Success, or the text of an unhandled Apex exception.
You can read information about this object, as well as delete it, but you can’t update or insert it.