this.debugging = debug + callsites + derived namespacing
npm install debugging> this.debugging = debug + callsites + derived namespacing
``sh`
$ npm install --save debugging
`js
'use strict';
var Debugging = require('debugging');
var debug = new Debugging('app');
debug('info');
// => app info
var debugAppAuth = debug.another('auth');
debugAppAuth('more info');
// => app:auth more info
(function someFunction() {
debugAppAuth.source(debugAppAuth.callsites()[0], 'even more info');
// => app:auth some-dir/some-file.js someFunction 14 even more info
})();
`
- #### namespace
Type String
The initial namespace to be applied to the debug logger; the default is 'app'.
- #### namespace
_Required_
Type String
A namespace to be appended to the current debug namespace
Log with callsite details
- #### callsite
_Required_
Type: Object
- #### info
Type: Any`
ISC © Buster Collings
[npm-image]: https://badge.fury.io/js/debugging.svg
[npm-url]: https://npmjs.org/package/debugging
[travis-image]: https://travis-ci.org/busterc/debugging.svg?branch=master
[travis-url]: https://travis-ci.org/busterc/debugging
[daviddm-image]: https://david-dm.org/busterc/debugging.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/busterc/debugging
[coveralls-image]: https://coveralls.io/repos/busterc/debugging/badge.svg
[coveralls-url]: https://coveralls.io/r/busterc/debugging
[greenkeeper-image]: https://badges.greenkeeper.io/busterc/debugging.svg
[greenkeeper-url]: https://greenkeeper.io/