Skip to main content

Getting Started

Installation

Install Apex Log Analyzer using whichever you prefer:

  • Extensions sidebar — search for Apex Log Analyzer and click **Install
  • Marketplace — open the VS Code Marketplace: Apex Log Analyzer and click Install.
  • Command Palette — press Cmd/Ctrl+Shift+P and run ext install financialforce.lana.
  • Command line — run from a terminal:
code --install-extension financialforce.lana
The Apex Log Analyzer listing in the VS Code Extensions view with the Install button

Pre-Release

Click Switch to Pre-Release Version on the banner to get bleeding edge changes and help us to resolve bugs before the stable release.

View Analysis

Start the analysis either from a log you have already downloaded or by downloading a log from an org to view. On larger logs the analysis window may take a few seconds to appear.

From an Open Log File

With the .log file open in VSCode.

  1. Open command pallette (CMD/CTRL + Shift + P) -> 'Log: Show Apex Log Analysis'
    or
  2. Click the 'Log: Show Apex Log Analysis' code lens at the top of the file
    Screenshot showing the Log: Show Apex Log Analysis code lense in a log file
    or
  3. Right click -> 'Log: Show Apex Log Analysis' or
  4. Click editor 'Log: Show Apex Log Analysis' icon button at top of editor or
  5. Right click editor tab -> 'Log: Show Apex Log Analysis'

Download a log

  1. Open command pallette (CMD/CTRL + Shift + P) -> 'Log: Retrieve Apex Log And Show Analysis
  • Set APEX_CODE level to FINE or 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