NebulaLogger

The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.

View the Project on GitHub jongpie/NebulaLogger

LoggerEmailSender class

Builds and sends email notifications when internal exceptions occur within the logging system


Methods

sendErrorEmail(Schema.SObjectType sobjectType, List<Database.SaveResult> saveResults)void

Sends an error email notification to the org's list of Apex Exception Email recipients, configured under Setup –> Email –> Apex Exception Email

Parameters
Param Description
sobjectType The SObjectType of records being saved.
saveResults The list of Database.SaveResult instances to use in the email.

sendErrorEmail(Schema.SObjectType sobjectType, List<Database.UpsertResult> upsertResults)void

Sends an error email notification to the org's list of Apex System.Exception Email recipients, configured under Setup –> Email –> Apex System.Exception Email

Parameters
Param Description
sobjectType The SObjectType of records being saved.
upsertResults The list of Database.UpsertResult instances to use in the email.