Salesforce Log Analyzer
A Visual Studio Code extension that analyzes Salesforce debug logs with organized accordion views and intelligent log grouping.
Features
- Accordion Organization: Automatically categorizes log entries into collapsible accordions by type (System Information, Code Execution, Database Operations, etc.)
- Intelligent Grouping: Groups similar log entries together within each category for better analysis
- Enhanced Parsing: Parses Salesforce debug log format with support for timestamps, event identifiers, and additional information
- Interactive UI: Click on log entries to view them in detail, expand/collapse categories as needed
- Performance Metrics: Shows execution time, total entries, and resource usage statistics
Usage
Analyze a Log File
- Open the Command Palette (
Ctrl+Shift+P or Cmd+Shift+P )
- Run "Analyze Salesforce Log File"
- Select your Salesforce debug log file (.log or .txt)
- View the analysis in the "Salesforce Log Analysis" panel in the Explorer
Analyze Current File
- Open a Salesforce debug log file in VS Code
- Open the Command Palette (
Ctrl+Shift+P or Cmd+Shift+P )
- Run "Analyze Current File as Salesforce Log"
- View the analysis in the "Salesforce Log Analysis" panel
Analyze Clipboard Content
- Copy Salesforce debug log content to your clipboard
- Open the Command Palette (
Ctrl+Shift+P or Cmd+Shift+P )
- Run "Analyze Clipboard Content as Salesforce Log"
- View the analysis in the "Salesforce Log Analysis" panel
- Right-click on .log or .txt files in the Explorer
- Select "Analyze Salesforce Log File" from the context menu
Log Categories
The extension organizes logs into the following categories:
- System Information: User info, execution boundaries, resource usage
- Code Execution: Apex code execution, method calls, debug statements
- Database Operations: SOQL queries, DML operations, database interactions
- Memory Management: Heap allocation and memory management operations
- Workflow & Validation: Workflow rules, validation rules, business logic
- Triggers: Trigger execution and trigger-related operations
- Callouts: External service callouts and HTTP requests
- Other: Uncategorized log entries
Enhanced Grouping
Within each category, the extension provides intelligent sub-grouping:
- USER_DEBUG: Groups by message patterns (errors, start/end, queries, DML, tests)
- STATEMENT_EXECUTE: Groups by line number ranges
- CODE_UNIT: Groups by code type (triggers, anonymous apex, web services, batch, etc.)
- DML Operations: Groups by operation type (insert, update, delete, upsert)
- SOQL Queries: Groups by object type and query characteristics
- HEAP_ALLOCATE: Groups by allocation size ranges
- VALIDATION_RULE: Groups by rule name
- WORKFLOW: Groups by workflow type (rules, actions, field updates, etc.)
Requirements
- Visual Studio Code 1.101.0 or higher
Installation
- Download the
.vsix file
- Open VS Code
- Go to Extensions view (
Ctrl+Shift+X )
- Click the "..." menu and select "Install from VSIX..."
- Select the downloaded
.vsix file
Development
To set up the development environment:
git clone <repository-url>
cd salesforce-log-analyzer
npm install
npm run compile
To run the extension in development mode:
- Open the project in VS Code
- Press
F5 to launch a new Extension Development Host window
- Test the extension in the new window
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
MIT License © 2025 Santhosh Reddy BasiReddy
Release Notes
1.0.0
New features:
- ✅ Clipboard Analysis: Analyze Salesforce debug logs directly from clipboard content
- ✅ Enhanced validation for clipboard content to ensure it's valid Salesforce log format
- ✅ Improved user feedback with detailed progress messages
2.0.0
Initial release of Salesforce Log Analyzer:
- ✅ Basic log parsing and categorization
- ✅ Accordion UI with expandable categories
- ✅ Intelligent log grouping within categories
- ✅ Support for Salesforce debug log format
- ✅ Performance metrics and statistics
2.0.1
- ✅ Supports Visual Studio Code version to support 1.85.0 and above
2.0.2
BUG FIXES:
- ✅ Log with spaces and | handle correctly, Dynamically searching the log type and assigning to the groups.
FEATURE:
- ✅ Added hyper link to the log , if user wants to open the actual line before grouping.
- ✅ Added Log Time and View Time , helps users know when the log file is generated and when it is viewd by user.
Download the latest VSIX
| |