Logs Explorer
Analyze and debug Salesforce logs with advanced filtering in Crudspace.io
Logs Explorer
The Logs Explorer in Crudspace.io provides a powerful interface for analyzing and debugging Salesforce debug logs. This feature helps developers understand execution flow, troubleshoot issues, and optimize performance.
Overview
Salesforce debug logs contain detailed information about the execution of code and database operations. The Logs Explorer offers:
- Advanced parsing and visualization of debug logs
- Collapsible sections for methods, triggers, and debug statements
- Intelligent filtering of log content
- Highlighting of important log entries
- Search capabilities across log content
Accessing the Logs Explorer
To access the Logs Explorer:
- Log in to Crudspace.io
- From the left sidebar, click on "Logs Explorer"
Interface Components
Log Selector
The top section allows you to:
- Upload a log file from your local system
- Select from recently generated logs in your Salesforce org
- Enter or paste log content directly
Log Visualization Panel
The main panel displays the parsed log with:
- Hierarchical Structure: Methods, triggers, and debug statements organized in a collapsible tree
- Syntax Highlighting: Different colors for different types of log entries
- Line Numbers: For easy reference
- Debug Levels: Visual indicators of debug statement levels (INFO, DEBUG, WARN, ERROR)
Control Panel
The control panel offers options to:
- Filter Content: Show only specific types of log entries
- Toggle Debug Highlighting: Enable/disable colorization of debug levels
- Debug-Only Mode: Show only USER_DEBUG entries
- Search: Find specific text within the log
- Jump To Section: Navigate directly to important sections
Working with Logs
Loading a Log
- Click "Upload Log" to select a log file from your computer
- Or select a recent log from the dropdown
- Or paste log content directly into the input area
- Click "Parse Log" to analyze and visualize the log
Navigating the Log
- Use the collapsible sections to expand or collapse parts of the log
- Click on section headers to jump to specific methods or triggers
- Use the search function to find specific text
- Use the "Jump To Section" dropdown to navigate to important areas
Filtering Log Content
- Use the "Filter" dropdown to show only specific types of entries:
- Methods
- Triggers
- DML Operations
- SOQL Queries
- Flows
- Debug Statements
- Toggle "Debug-Only Mode" to focus exclusively on USER_DEBUG statements
- Use the "Debug Level" filter to show only statements of a certain level
Analyzing Log Sections
- Click on a method or trigger section to expand it
- View execution time and context
- Examine nested calls and debug statements
- Identify performance bottlenecks
Advanced Features
Debug Highlighting
Enable debug highlighting to visually distinguish between different debug levels:
- INFO: Blue background
- DEBUG: Green background
- WARN: Yellow background
- ERROR: Red background
Method Execution Analysis
The Logs Explorer automatically calculates and displays:
- Total execution time for each method
- Number of SOQL queries within each method
- DML operations performed within each method
- Nested method calls
Search and Highlighting
Use the search functionality to find specific text in the log:
- Enter a search term in the search box
- Matching entries will be highlighted
- Use the navigation buttons to move between matches
Troubleshooting Common Issues
Identifying SOQL Limits Issues
- Enable the SOQL filter to show only query operations
- Look for repeated similar queries that could be consolidated
- Check for queries inside loops
Finding DML Problems
- Enable the DML filter to show only database operations
- Look for DML operations inside loops
- Check for mixed DML operations that could cause errors
Debugging Trigger Issues
- Use the Triggers filter to focus on trigger execution
- Examine the order of trigger execution
- Check for recursive trigger patterns
Best Practices
- Start Broad, Then Narrow: Begin with the full log, then apply filters to focus on specific areas
- Look for Patterns: Identify repeated operations that might indicate inefficiencies
- Compare Logs: When troubleshooting, compare logs from successful and unsuccessful operations
- Focus on Timing: Pay attention to execution times to identify performance bottlenecks
- Check Debug Levels: Ensure you're using appropriate debug levels when generating logs