logging-framework

Community

Structured Apex logging with Platform Events.

Authorbhanu91221
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This framework provides a robust, scalable approach to capturing and persisting application logs in Salesforce, avoiding DML usage in business logic by emitting events and storing structured data for audit and debugging.

Core Features & Use Cases

  • Platform Events driven logging: Decouples log creation from business transactions by publishing Log_Event__e.
  • Structured logs: Captures Level__c, Source__c, Message__c, Stack_Trace__c, Payload__c for rich context.
  • Retention & governance: Includes configurable retention policies and a scheduled cleanup to prevent data bloat.
  • Usage: Use LogService to log at various levels from Apex classes, with optional payloads to provide context.

Quick Start

Configure the LogService in your Salesforce org to emit logs with the desired level and retention policy.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: logging-framework
Download link: https://github.com/bhanu91221/claude-sfdx-iq/archive/main.zip#logging-framework

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.