Analyze Salesforce Apex Debug logs with blazing speed.
Apex Log Analyzer is a blazing-fast VS Code extension for Salesforce developers. Instantly visualize and debug Apex logs with interactive flame charts, dynamic call trees, and detailed SOQL/DML breakdowns. Identify performance bottlenecks, gain deep insight into complex transactions and optimize slow Apex methods faster than ever.
Installation | Debug Log Levels | Features | Customization | Documentation | Contributors | License
- π₯ Timeline β Visualize every method, SOQL query, and DML operation in your Apex logs with an interactive flame chart and minimap navigation.
- π² Interactive Call Tree β Dive into execution stacks with timing, row counts, and DML/ SOQL metrics.
- π Apex + Database Analysis β Identify slow-performing SOQL, high-impact DML, and time-heavy Apex methods.
- π Raw Log Navigation β Jump between analysis views and raw log files with code folding, hover details, and bidirectional navigation.
- π§ Smart Filtering + Sorting β Focus on what matters: filter by namespace, event type, or duration.
- π Deep Search β Find events across the flame chart, call tree, and database tables.
- π€ Export + Share β Copy or Export Salesforce debug log insights for analysis or collaboration.
β¨ Works with any
.logSalesforce debug log file.
You can install Apex Log Analyzer directly from Visual Studio Code, the command line, or the Visual Studio Code Marketplace.
- Open the Extensions sidebar (
Ctrl+Shift+XorCmd+Shift+X). - Search for
Apex Log Analyzer. - Click Install.
β‘οΈ Install Apex Log Analyzer on Visual Studio Code Marketplace
code install financialforce.lanaπ‘ Access experimental features and shape future updates by switching to the Pre-Release Version from the extension banner in VS Code.
You can analyze logs in two ways:
- Open a
.logfile in VS Code. - Run
Log: Show Apex Log Analysisvia:- Command Palette (
Ctrl/Cmd + Shift + P) - Top-of-file code lens
- Right-click menu
- Editor toolbar button
- Command Palette (
Use Log: Retrieve Apex Log And Show Analysis from the Command Palette.
- Set
APEX_CODElevel toFINEor higher β lower levels may omit important execution details. - Be aware that higher debug levels introduce logging overhead, which can inflate recorded execution times.
- Avoid truncated logs β they can result in incomplete or misleading analysis.
- Recommended settings for a good balance of detail and performance:
APEX_CODE,FINE; APEX_PROFILING,FINE; CALLOUT,INFO; DB,FINEST; NBA,INFO; SYSTEM,DEBUG; VALIDATION,INFO; VISUALFORCE,FINE; WAVE,INFO; WORKFLOW,FINE
The Timeline view shows a live visualization of your Salesforce Apex log execution β including methods, SOQL queries, DML operations, workflows, flows, and more.
- β‘ Fast β Blazing-fast zoom, pan, and rendering even on massive logs (500k+ lines).
- πΊοΈ Minimap β Bird's-eye view with skyline density overview, viewport lens, and instant teleport.
- π Governor Limits Strip β At-a-glance limit usage with traffic light coloring. Expand for detailed step chart.
- π Measure & Zoom β
Shift+Dragto measure durations,Alt/Option+Dragto area-zoom, precision keyboard controls. - π Wall-Clock Time β Toggle between elapsed and real-time (HH:MM:SS.mmm) on the time axis via the toolbar clock button.
Also: Frame Selection & Navigation, Dynamic Frame Labels, Adaptive Frame Detail, Tooltips, Context Menu, Search & Highlight, 19 Curated Themes.
π§ Great for spotting long-running operations, inefficient queries, and bottlenecks.
Explore nested method calls with performance metrics:
- Metrics: Self Time, Total Time, SOQL/DML/Thrown Counts, SOQL/DML/Rows
- Filter by Namespace, Type or Duration
- Toggle Debug-Only + Detail Events
- Keyboard Navigation
- Click to go to Code β Jump to the source method in your project
See which methods are the slowest, most frequent. or expensive.
- Group by Type or Namespace
- Sort by Duration, Count, Name, Type or Namespace
- Filter to specific event types
- Copy or Export to CSV
Highlight slow Salesforce SOQL queries, non-selective filters, and DML issues.
- SOQL + DML Duration, Selectivity, Aggregates, Row Count
- Group by Namespace or Query
- View the Call Stack
- SOQL Optimization Tips
- Sort by SOQL or DML, Duration, Selectivity, Aggregates, Row Count
- Copy or Export to CSV
Search across all visualizations:
- Timeline
- Call Tree
- Analysis
- Database
Quickly step through matches, auto-expand parents, and automatically show timeline tooltips.
Seamlessly navigate between the visual analysis and your raw .log files:
- Show in Raw Log β Right-click any frame in Timeline or Call Tree β "Show in Log File" to jump to the exact line.
- Show in Log Analysis β Hover a raw log line to see metrics and click "Show in Log Analysis" to jump back.
- Code Folding β Collapse/expand matching start/end events (METHOD_ENTRY/EXIT, DML_BEGIN/END, etc.) using the gutter icons or
Ctrl+Shift+[/]. - Line Decorations β Duration appears as ghost text at the end of the cursor line (e.g.,
1.23s (self: 45ms)). - Hover Details β Hover near the ghost text to see SOQL/DML counts, row counts, and exception info.
- Total Duration β First line displays total log execution time.
Adjust event colors in settings.json:
"lana.timeline.customThemes": {
"Glacial Warmth": {
"apex": "#6882A6",
"codeUnit": "#7A9B6E",
"system": "#9E8E7C",
"automation": "#D98650",
"dml": "#C85A5A",
"soql": "#57A89A",
"callout": "#C9A64D",
"validation": "#8B7BAC"
},
"Orchid Slate": {
"apex": "#647C96",
"codeUnit": "#8872A8",
"system": "#8A7E7E",
"automation": "#C08545",
"dml": "#C94C6E",
"soql": "#5A9E85",
"callout": "#B5A044",
"validation": "#4EA6A6"
}
}Or go to: Preferences > Extensions > Apex Log Analyzer.
Thanks to our amazing contributors!
Copyright Β© Certinia Inc. All rights reserved.
This project uses Tabulator Tables, an open-source table library, under the MIT license. Tabulator is a powerful and flexible table library that helped with the interactive table features in the Apex Log Analyzer extension.
Additionally, the timeline color themes in Apex Log Analyzer draw inspiration from several open-source color palettes, editor themes, and UIs β including Salesforce UI, Chrome DevTools, and Firefox DevTools. We are grateful to the creators and maintainers of Catppuccin, Dracula, Nord, Solarized, Monokai Pro, OkabeβIto, Material Design, and the broader theme communities whose work influenced the presets included in our timeline themes.




