The Salesforce Log Subscriber is a powerful Visual Studio Code extension that allows users to manage logs and trace flags in a Salesforce organization, directly from the Visual Studio Code interface. It utilizes the Salesforce CLI under the hood to interact with your Salesforce organization, giving developers a streamlined and integrated environment for Salesforce log management.
Features
Fetch and delete logs from Salesforce.
Handle Salesforce trace flags, including fetching users and Apex Classes from Salesforce, creating and deleting trace flags, and more.
Display Salesforce logs and trace flags in a tree view.
Adds a quick debug log for current user for 30 minutes with given debug level.
Install this extension from the Visual Studio Code extension marketplace.
How to Use
Log Utilities
Delete Logs: Deletes all logs in the Salesforce organization.
Fetch Logs: Fetches all available logs from the Salesforce organization.
Setup Quick Log: Adds a quick debug log for current user for 30 minutes with given debug level.
Fetch My Logs: Fetches only current user logs based if a trace flag is active.
Fetch All Logs: Fetch all logs for all active trace flags.
To use these features, access the commands from the command palette (Ctrl+Shift+P on Windows, Cmd+Shift+P on MacOS) and search for the corresponding command.
Trace Flags
Fetch Users: Fetches all active users from your Salesforce organization.
Fetch Debug Levels: Fetches all available Debug Levels from your Salesforce organization.
Fetch Apex Classes: Fetches all available Apex Classes from your Salesforce organization.
Delete Trace Flag: Deletes a trace flag by its ID.
Add Trace Flag: Adds a new trace flag with specific parameters (type, user, start date, end date, and debug
level).
The trace flags are displayed in a tree view within VS Code. Clicking on the "Refresh" button will refresh the view.
Each trace flag can be deleted directly from the tree view.
Contributing
We encourage you to contribute to Salesforce Log Subscriber! Please check out the Contributing Guide
for guidelines about how to proceed.
Demo
License
Salesforce Log Subscriber is open-sourced software licensed under the MIT license.