Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Apex Log DownloaderNew to Visual Studio Code? Get it now.
Apex Log Downloader

Apex Log Downloader

Gaurav Lokhande

|
7 installs
| (1) | Free
Download Salesforce Apex Logs & search easily
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

✨ Apex Log Downloader

Publisher: glokhande-dev
Extension ID: apex-log-downloader

🚀 Apex Log Downloader is a VS Code extension that allows Salesforce developers to quickly download Apex Debug Logs directly into their project workspace using the Salesforce CLI (sf). This makes it easier to investigate logs for performance issues, exceptions, limits, and custom debug events—without navigating Salesforce Setup or Developer Console.

   

🔥 Key Features

Capability Description
⚡ Automatic Org Selection Detects the default connected Salesforce org in your project (target-org)
🔎 Filter logs Filter by User Display Name & Request Type
📥 Bulk log download Download logs in parallel chunks for improved speed
📂 Automatic folder creation Saves logs under a logs/ folder in your workspace
⏳ Progress indicator Shows real-time progress — e.g., Downloading logs 37/120...
🧠 Large log support Handles large logs (multi-MB) without buffer overflow

   

🛠 Requirements

  • Salesforce CLI (sf) installed and accessible in the system
  • An authorized sfdc org
  • VS Code v1.106.0+

   

🚀 How to Use

  1. Open any VS Code workspace folder
  2. Press Ctrl + Shift + P (or Cmd + Shift + P on macOS)
  3. Run command:
    • Apex: Download Logs
  4. Provide optional filters:
    • User Display Name (e.g., John Smith)
    • Request Type (e.g., Application, API, etc.)
  5. Enter number of logs to download ⚠ Large numbers may consume API call limits.
  6. Logs will begin downloading automatically and you’ll see:
    • Fetching Apex logs…
    • Downloading logs 23/100…
    • Logs are saved to: /logs/*.log
  7. Use VS Code search for debugging: Ctrl + Shift + F → logs/**/*.log

   

⚠️ API Usage Note

📌 Each log download is considered a Salesforce API request. If requesting large batches multiple times(e.g., 200+ logs), you may consume daily API limit

   

🧠 Salesforce CLI Path Resolution

The extension automatically detects sf from:

  1. /usr/local/bin/sf (Mac)
  2. C:\Program Files\sf\bin\sf.cmd (Windows)
  3. sf from PATH
  4. Custom path via VS Code settings: Settings → Extensions → Apex Log Downloader → Sf Path

   

🧪 Known Limitations

  1. Does not currently support UI date/time filters
  2. Requires a folder workspace (not empty window)

   

📦 Release Notes

Version Changes
0.0.1 Initial release
0.2.2–0.2.7 Filter improvements, large log support, org selection enhancements
0.2.8 Added progress status UI
0.2.9 Performance improvements
1.0.0 Default org auto-detection & improved UX
1.0.0-1.0.3 Performance improvements
1.0.4-1.1.0 Minor Fixes
1.1.1 Updated filter options

   

🪪 License

MIT License © 2025 — Gaurav Shivaji Lokhande

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft