Skip to content

SFDX Platform-Event-based Apex logger for unified logging over transaction boundaries

License

Notifications You must be signed in to change notification settings

Traction-Rec/sfdx-apex-unified-logging

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apex Unified Logging - SFDX Unlocked Namespaced Package

Logging framework based on Salesfore Platform Events to overcome the limitations of System.debug logging.

Install:

Usage:

  • 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

Features:

  • 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

Screenshots:

lightning_experience___salesforce_und_skype_und_cprm____dev_projects_cprm__-_attributeprovider

developer_console

custom_settings___salesforce

Kudos to:

I was standing on the shoulders of those giants when building this

About

SFDX Platform-Event-based Apex logger for unified logging over transaction boundaries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Apex 55.8%
  • JavaScript 43.9%
  • Dockerfile 0.3%