Skip to content

Logging and Observability

Using System.debug() is fine for quick troubleshooting or Apex performance profiling during development. However, for production support, it’s the worst possible solution. It requires setting up debug logs for the affected user, retrieving the log, and dealing with potential size limits where the part you actually care about gets trimmed.

For a better solution, we recommend Nebula Logger by Jonathan Gillespie. Nebula Logger is an observability framework that integrates with Apex, Lightning Components, Flow, OmniStudio, and external integrations. The library has strong community support and has been featured at many events, including Dreamforce.

You can learn more about Nebula Logger in this session: