alias-for-debug.js 280 B

1234567891011
  1. /**
  2. * return 'debug' method of bunyan logger
  3. *
  4. * This is supposed to be used as an replacement of "require('debug')"
  5. *
  6. * @param {string} name
  7. */
  8. module.exports = (name) => {
  9. const bunyanLogger = require('./index')(name);
  10. return bunyanLogger.debug.bind(bunyanLogger);
  11. };