ApexLog

Represents an Apex debug log.

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 until the user or the system overwrites them.
  • SystemLog—log is generated from the Developer Console. These types of logs are only maintained for 60 minutes 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 Apex exception.

Usage

You can read information about this object, as well as delete it: you can't update or insert. For information, see the Force.com Apex Code Developer's Guide.
© Copyright 2000–2014 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.