npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sf-debug-log

v0.1.2

Published

Manage Salesforce Debug Logs

Downloads

88

Readme

sf-debug-log

Commands to manage Salesforce debug logs.

Create trace flags for any user in the org selecting the debug level and time. Retrive Apex logs related to a specific user to analyze them locally.

Install

sf plugins install sf-debug-log

Commands

sf trace new

USAGE
  $ sf trace new -o <value> [-u <value>] [-t <value>]

FLAGS
  -o, --targetusername=<value>  [required] Username or alias of the target Salesforce org.
  -t, --time=<value> [default: 60] The number of minutes to trace.
  -u, --name=<value> [default: targetusername] Username, Name, or ID of the user for whom you want to retrieve the logs.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Create a new trace flag.

  This command is used to create a trace flag for a specific user in the Salesforce org.

EXAMPLES
  sf trace new -o DeveloperEdition -u "Raffaele Preziosi" -t 10

sf debug retrieve

USAGE
  $  sf debug retrieve -o <value> [-u <value>] [-t <value>] [-d <value>]

FLAGS
  -d, --folder=<value>          [default: .sfdx/tools/debug/logs] The folder where the retrieved log files will be stored.
  -o, --targetusername=<value>  (required) Username or alias of the target Salesforce org.
  -t, --time=<value>            [default: 60] The number of minutes to retrieve log files for.
  -u, --user=<value>            [default: targetusername] Username, Name, or ID of the user for whom you want to retrieve the logs.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Retrieve Apex log files from the Salesforce platform.

  This command allows you to retrieve Apex log files from a Salesforce org.

EXAMPLES
  sf debug retrieve -o DeveloperEdition -u "Raffaele Preziosi" -t 10

sf debug delete

USAGE
  $  sf debug delete -o <value> [--json] [-u <value>] [-t <value>] [-a]

FLAGS
  -a, --all                     Delete log files for all users.
  -o, --targetusername=<value>  (required) Username or alias of the target Salesforce org.
  -t, --time=<value>            The number of minutes to retrieve log files for.
  -u, --user=<value>            [default: targetusername] Username, Name, or ID of the user for whom you want to delete the logs.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Delete Apex log files from a Salesforce org.

EXAMPLES
  sf debug delete -o DeveloperEdition -u "Raffaele Preziosi" -t 10

sf debuglevel new

USAGE
  $ sf debuglevel new -o <value> [-n <value>]

FLAGS
  -o, --targetusername=<value>  [required] Username or alias of the target Salesforce org.
  -n, --name=<value> [required] The developer name of the new DebugLevel.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Create a new DebugLevel.

  Create a new DebugLevel assigning level for each category.

EXAMPLES
  sf debuglevel new -o DeveloperEdition -n "DebugLevel"