function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Chris YaskoskiChris Yaskoski 

Debug logs in EventLog?

I am using an external tool for logging tha tI can integrate with the Salesforce EventLog. This is great except that I can't seem to find a way to get Apex or other Debug logs into the EventLog. Is this possible? Is there a list someplace of everything EventLog is capable of logging?
Raj VakatiRaj Vakati

 
The EventType field in the EventLogFile object supports these events. Some common fields, such as CPU_TIME and RUN_TIME, can have null or zero values depending on how the events are generated for a given feature.

The Following are the event it support 


Apex Callout Event Type
Apex Callout events contain details about callouts (external requests) during Apex code execution.
Apex Execution Event Type
Apex Execution events contain details about Apex classes that are used.
Apex SOAP Event Type
Apex SOAP events contain details about Web Services API calls.
Apex Trigger Event Type
Apex Trigger events contain details about triggers that fire in an organization.
 
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_eventlogfile_supportedeventtypes.htm


 
https://${instance}.salesforce.com/services/data/v34.0/query?q=Select+Id+,+EventType+,+LogDate+From+EventLogFile+

 
Chris YaskoskiChris Yaskoski
@Raj VakatiRaj Vakati

Will this also log "debug.log" lines that developers place in the Apex code?
Raj VakatiRaj Vakati
i dnt think so