Logging framework based on Salesfore Platform Events to overcome the limitations of System.debug
logging.
- Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5w000000iFisAAE
- Install from command line:
sfdx force:package:install -p 04t5w000000iFisAAE
- Note 'My Domain' should be enabled in the org before using the log monitor
- Enable a trace:
- Open Custom Settings setup page
- select 'Settings' in aul namespace
- select 'Manage' button
- add a new Setting record (not org default)
- enable for your user for the current date
- Open 'Sample App (Unified Logging)' (may need to be enabled in profile settings)
- if the log monitor utility bar does not appear at the bottom of the screen then ensure 'My Domain' is enabled
- Open the log monitor from the utility bar at the bottom of the screen
- Execute
aul.Log.debug('test');
- A log entry should appear in the monitor
- Provides unified view of logs over transaction boundaries (a.k.a. execution contexts)
- Groups Logs of the same Batch
- UI only shows the logs produced by current user
- Autodetection of Code Location
- Nice UI using a Lightning Utility Bar
- Activated using user-level custom settings
- Easily extendable to report exceptions and Governor Limit state
I was standing on the shoulders of those giants when building this