global-debug
v1.0.2
Published
Ability to add a debug function to your global node project in order to capture all data.
Readme
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()
