The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.
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)
Language
→ Source
Location
→ String
ParsedStackTraceString
→ String
Source
→ public
AnonymousBlock()
→ public
ApexClass()
→ public
ApexTrigger()
→ public
AuraDefinitionBundle()
→ public
LightningComponentBundle()
→ public
ignoreOrigin(System.Type apexType)
→ void
Adds 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)
→ void
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 |
ignoreOrigins(Set<System.Type> apexTypes)
→ void
Adds the specified Apex types to the list of ignored origin locations for the current transaction. 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 |
---|---|
apexTypes |
A Set containing the Apex types of the classes to ignore |
ActionName
→ String
ApiName
→ String
LineNumber
→ Integer
MetadataType
→ Source