The most robust observability solution for Salesforce experts. Built 100% natively on the platform, and designed to work seamlessly with Apex, Lightning Components, Flow, OmniStudio, and integrations.
Class used for tracking & parsing stack traces
LogEntryBuilder
LoggerStackTrace()Constructor that automatically generates & parses stack trace information based on the calling code
LoggerStackTrace(Exception apexException)Constructor that parses stack trace information from the provided Exception
| Param | Description |
|---|---|
apexException |
An instance of any Exception class |
LoggerStackTrace(String apexStackTraceString)Constructor that parses stack trace information from the provided String
| Param | Description |
|---|---|
apexStackTraceString |
The original stack trace value generated by the platform |
LoggerStackTrace(SourceLanguage language, String sourceStackTraceString)DEPRECATED: This constructor is no longer used, and will be removed in a future release. Constructor that parses stack trace information from the provided String, using the specified language
| Param | Description |
|---|---|
language |
The source language (Apex or JavaScript) |
sourceStackTraceString |
The original stack trace value generated by the platform |
Language → SourceLocation → StringParsedStackTraceString → StringSource → publicAnonymousBlock() → publicApexClass() → publicApexTrigger() → publicignoreOrigin(System.Type apexType) → voidAdds the specified Apex type to the the current transaction's list of ignored origin locations. Any ignored types will be removed from the StackTrace__c field, and will be skipped when determining the log entry's origin location
| Param | Description |
|---|---|
apexType |
The Apex type of the class to ignore |
ignoreOrigin(SourceLanguage language, String origin) → voidDEPRECATED: This method is no longer used, and will be removed in a future release. Adds the specified string-based origin to the the current transaction's list of ignored origin locations for the specified source language. Any ignored types will be removed from the StackTrace__c field, and will be skipped when determining the log entry's origin location
| Param | Description |
|---|---|
language |
The source language (Apex or JavaScript) |
origin |
The string-based name of the Apex type or lightning component name to ignore |
ActionName → StringApiName → StringLineNumber → IntegerMetadataType → Source