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

@pogilvie/dlog

v1.0.5

Published

Download debug logs form a Salesforce org

Downloads

8

Readme

dlog

Download all Debug Log files from a Salesforce Org

Install

If you don't already have node and sfdx (Salesforce cli) installed you must install them.

Install dlog

  • sudo npm -g install @pogilvie/dlog

Setup

dlog requires an authenticated DX user. Create an authentication entry in the force:org:list if an entry for the target org does not already exist.

$ sfdx force:auth:web:login -a <your org alias>

Run

Create a directory for where your downloaded logs should go and cd into the directory

$ mkdir logs
# cd logs

Finally, run the command

$ dlog -u myOrg

dlog creates an index.csv file which you may load into a spreadsheet which will give you an overview of the downloaded logs.

ID                 USER          REQUEST     STATUS                                                                                                                              DURATIONMSEC LOG LENGTH
07L4N00000Nut26UAB Peter Ogilvie Api         Success                                                                                                                             701          27603     
07L4N00000Nut2BUAR Peter Ogilvie Api         Assertion Failed                                                                                                                    2710         20837     
07L4N00000Nut2GUAR Peter Ogilvie Api         Success                                                                                                                             615          5529      
07L4N00000Nut2LUAR Peter Ogilvie Api         Success                                                                                                                             1626         10366     
07L4N00000Nut2QUAR Peter Ogilvie Api         Success                                                                                                                             689          19410     
07L4N00000Nut2VUAR Peter Ogilvie Api         Success                                                                                                                             677          8355      
07L4N00000Nut2aUAB Peter Ogilvie Api         Success                                                                                                                             1404         12286     
07L4N00000Nut2fUAB Peter Ogilvie Api         Success                                                                                                                             1372         12658     
07L4N00000Nut2kUAB Peter Ogilvie Api         Success                                                                                                                             676          6027      
07L4N00000Nut2pUAB Peter Ogilvie Api         Success                                                                                                                             1431         46495     
07L4N00000Nut2uUAB Peter Ogilvie Api         Success                                                                                                                             1023         7239      
07L4N00000Nut2zUAB Peter Ogilvie Api         Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [ProfileId]: [ProfileId] 1955         32313     
07L4N00000Nut34UAB Peter Ogilvie Api         Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Books must have two pages: []              1057         4016      
07L4N00000Nut39UAB Peter Ogilvie Api         Success                                                                                                                             1030         3520      
07L4N00000Nut3EUAR Peter Ogilvie Api         Success                                                                                                                             3982         1715345   
07L4N00000Nut3JUAR Peter Ogilvie Api         Success                                                                                                                             1073         15922     

If you only want to create print and create a table of contents of log files use the -T option.