global-debug

1.0.2 • Public • Published

Global Debug

Allows for easy setup of debug within the same namespace with out the need to redeclare the library and namespace.

Install

npm install global-debug --save

require('global-debug')('NAMESPACE')

DEBUG=NAMESPACE:*

Default loggers

debug.log()

debug.error()

debug.requests() // for use with morgan-debug

Adding a new logger

debug.addLogger("migrations")

debug.migrations()

Dependents (0)

Package Sidebar

Install

npm i global-debug

Weekly Downloads

4

Version

1.0.2

License

ISC

Last publish

Collaborators

  • rachelhigley