Logger Framework in Salesforce

Posted by Abhishek on May 29, 2020

Salesforce Architecture

Right from the simplest to most complex, there are many approaches to logging. In this blog, I will introduce a framework for logging errors/warning in APEX language in Salesforce.

Need for such a framework

Improvements that I aimed in this Framework

UML Diagram

UML Diagram

Explanation of UML Elements

DI_Container__mdt

Field Structure
Field Name Type
Logger__c Text(255)
Values in DI_Container__mdt custom metadata type
DI Container Name Logger
ServicesRegistration MockLogger

The source code of this project is present in my GitHub page.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.


Thanks for reading this post. Enjoy !!
Share on: