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.
Abstract class used by trigger handlers for shared logic
LoggerSObjectHandler()execute() → voidRuns the handler class's logic, as well as any configured plugins
getHandler(Schema.SObjectType sobjectType) → LoggerSObjectHandlerReturns an instance of LoggerSObjectHandler that has been built & configured for the specified SObjectType
| Param | Description |
|---|---|
sobjectType |
The instance SObjectType to check for a configured instance of LoggerSObjectHandler |
Type
LoggerSObjectHandler
Description
The Apex class that extends LoggerSObjectHandler and has been configured for the specified SObjectType
getHandler(Schema.SObjectType sobjectType, LoggerSObjectHandler defaultImplementation) → LoggerSObjectHandlerReturns an instance of LoggerSObjectHandler that has been built & configured for the specified SObjectType
| Param | Description |
|---|---|
sobjectType |
The instance SObjectType to check for a configured instance of LoggerSObjectHandler |
defaultImplementation |
A default implementation of LoggerSObjectHandler that should be used, if a configuration cannot be found LoggerSObjectHandler_t |
Type
LoggerSObjectHandler
Description
The Apex class that extends LoggerSObjectHandler and has been configured for the specified SObjectType
getSObjectType() → Schema.SObjectTypeReturns the SObject Type that the handler is responsible for processing
Type
Schema.SObjectType
Description
The instance of SObjectType
overrideTriggerableContext(LoggerTriggerableContext input) → LoggerSObjectHandlerProvides the ability to override the instance LoggerTriggerableContext that is normally provided internally by LoggerSObjectHandler
| Param | Description |
|---|---|
input |
The instance of LoggerTriggerableContext to use within the trigger handler class |
Type
LoggerSObjectHandler
Description
The same instance of LoggerSObjectHandler, useful for chaining methods