1.0.9 • Published 6 years ago

debug-to-file v1.0.9

Weekly downloads
5
License
ISC
Repository
-
Last release
6 years ago

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

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago