debugging
Installation
$ npm install --save debugging
Usage
'use strict'; var Debugging = ; var debug = 'app';;// => app info var debugAppAuth = debug;;// => app:auth more info { debugAppAuthsourcedebugAppAuth0 'even more info'; // => app:auth some-dir/some-file.js someFunction 14 even more info};
API
Debugging([namespace])
-
#### namespace
Type
String
The initial namespace to be applied to the debug logger; the default is 'app'.
another(namespace) : Debugging
-
#### namespace
Required Type
String
A namespace to be appended to the current debug namespace
source(callsite, [info])
Log with callsite details
-
#### callsite
Required Type:
Object
-
#### info
Type:
Any
License
ISC © Buster Collings