j-fischer / Rflib
Projects that are alternatives of or similar to Rflib
Reliability Force
The goal of this library is to help developers to create clean, production-ready code with a high level of operational supportability.
This library is inspired by Dan Appleman's (see Advanced Apex Programming) logging design pattern to collect better diagnostic information when dealing with errors in your Apex classes. This library expands his concepts to provide detailed log information from Lightning Components and Lightning Web Components, giving developers more visibility into the execution path on the client side, especially when dealing with production issues. The library can be configured to automatically report any unexpected errors through Salesforce's latest technologies such as Platform Events.
Key Features
The following lists describe some of the key features of rflib.
Logging Framework (package RFLIB):
- Logger for LWC and Aura, which publishes logs the same way as Apex
- Configuration through Custom Settings allowing for different log configurations between users
- Aggregation of log statements when reporting
- Using Platform Events for reporting of log statements
- Support Batched Logging for when DML statements are not supported
Feature Switches (package RFLIB-FS):
- Fully configured using Custom Metadata
- Supports hierarchical structure (similar to Custom Settings) to override settings at the profile or user level
- Fully supported in Flow Builder through Get Records or Apex Action
Trigger Framework (package RFLIB-TF):
- Fully decoupled framework, trigger handlers work in isolation
- Recursion tracking to allow for easy prevention of multiple executions
- Fully configurable trigger management (activation, order, error handling, etc) using Custom Metadata
Deploy
The best way to add RFLIB to your environment is by installing the unlocked package.
Alternatively, you can either clone the repository and use 'sfdx force:source:deploy' to deploy this library to your Sandbox or use the Deploy to Salesforce button below to deploy it directly into your org.
Please check the CHANGELOG file for versions, install links and package aliases.
To install package via browser:
https://login.salesforce.com/packaging/installPackage.apexp?p0=<PACKAGE_VERSION_ID>
To install latest package via SFDX CLI Plugin:
sfdx sforce📦install -p 04t3h000004jpwzAAA -w 10 -s AllUsers -u <your org alias>
sfdx sforce📦install -p 04t3h000004jpyMAAQ -w 10 -s AllUsers -u <your org alias>
sfdx sforce📦install -p 04t3h000004jq2OAAQ -w 10 -s AllUsers -u <your org alias>
To deploy code:

Documentation
Documentation such as How To's and more can be found in the Wiki of this repository.
Log Event Dashboard
Review any log events sent within the last 72 hours or receive new log events in real-time. The dashboard shows all the events and lets you filter them by searching text within the messages. This will make it easy to detect error codes or other log messages of value.
To enabled the Ops Center application, simply assign the Ops Center Access
Permission Set to the users of your choice.
Updates
See CHANGELOG file for versions, install links and package IDs.
Credits
- Table Pagination was inspired by: https://salesforcelightningwebcomponents.blogspot.com/2019/04/pagination-with-search-step-by-step.html
- Log Monitor Component was inspired by: https://github.com/rsoesemann/apex-unified-logging
- "Bypass All Trigger" Custom Permission was inspired by: https://github.com/appero-com/MyTriggers
- The unlocked packaged was created with the help of Andrew Fawcett: https://andyinthecloud.com/2018/06/16/salesforce-dx-packages-and-open-source/
- Logo was created with: https://www.freelogodesign.org/
- Thanks to Fabien Taillon for his SFDX CLI Plugin: https://github.com/texei/texei-sfdx-plugin
- Thanks to René Winkelmeyer for his SFDX CLI Plugin: https://github.com/muenzpraeger/sfdx-plugin
- Thanks to Shane McLaughlin for his SFDX CLI Plugin: https://github.com/mshanemc/shane-sfdx-plugins