1.0.2 • Published 7 years ago

global-debug v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

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()

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago