Apex Log Viewer icon

Apex Log Viewer

A paginated, searchable Apex logs panel for VS Code with filters, sorting, and Apex Replay Debugger integration.

VS Code 1.87+ Salesforce CLI (sf or sfdx) Replay Debugger integration English & Portuguese (pt-BR)

Key features

  • Paginated log list with columns: User, Application, Operation, Time, Status, Code Unit, Size.
  • Client-side quick search and filters (User, Operation, Status, Code Unit).
  • Sortable columns with sensible defaults (Time/Size desc).
  • Open logs or launch Apex Replay Debugger from the list.
  • Tail logs in real time via Salesforce CLI.
  • Org selection via toolbar or command palette.
  • Infinite scroll and configurable page size.
  • Localization: English and pt-BR.

Requirements

  • VS Code 1.87+.
  • Salesforce CLI: sf (recommended) or legacy sfdx.
  • Optional: Salesforce Apex Replay Debugger.

Authenticate

sf org login web   # or: sfdx force:auth:web:login
sf org list        # verify orgs

Install

Option A — VSIX

  1. Download the latest .vsix from Releases.
  2. In VS Code, run: Extensions: Install from VSIX…

Option B — Development

git clone https://github.com/Electivus/Apex-Log-Viewer.git
cd Apex-Log-Viewer
npm install
npm run build
# Press F5 to launch the Extension Development Host

Commands

  • Apex Logs: Refresh Logs — command id sfLogs.refresh
  • Apex Logs: Select Org — command id sfLogs.selectOrg
  • Apex Logs: Tail Logs — command id sfLogs.tail

Settings

  • sfLogs.pageSize: logs per page (10–200; default 100)
  • sfLogs.headConcurrency: concurrent header requests (1–20; default 5)

Troubleshooting

  • CLI not found: Ensure sf (or sfdx) is on PATH. On macOS/Linux, start VS Code from a shell session that has PATH configured.
  • Replay Debugger fails to launch: Install the Salesforce Apex Replay Debugger extension.
  • No orgs detected: Authenticate with sf org login web and verify with sf org list.