Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

debug-to-file

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debug-to-file

[debug-to-file](http://github.com/131/debug-to-file) is tiny, no dependecy helper to dump [debug](http://github.com/visionmedia/debug) traces to a file (through `DEBUG_FILE` env var).

  • 1.0.9
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

debug-to-file is tiny, no dependecy helper to dump debug traces to a file (through DEBUG_FILE env var).

debug-to-file also allows you to customize debug output format using the DEBUG_FORMAT.

Build Status Version License

DEBUG_FILE

Declare env DEBUG_FILE as the debug-to-file target

Available format for DEBUG_FORMAT

  • use :time for ISO timestamp
  • use :namespace for debug namespace
  • use :body for main payload
  • use :diff for last msg diff

Defaut DEBUG_FORMAT is ":time :namespace :body"

Support for console.log/console.error

debug-to-file will duplex everything to the console into the trace file

Support for debug

debug-to-file will overrite debug.log (per specifications) to a dedicated file

Browserify recommandation

Exclude debug from browserify is a good way to make sure only one debug reference is loaded.

Credits

FAQs

Package last updated on 18 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc