Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports.stubLogging = () => {
return sinon.stub(Logging.prototype, 'log').callsFake(() => {
const _log = function (entry, callback) { callback() }
return {
entry: function (meta, data) { return {} },
debug: _log,
info: _log,
warning: _log,
error: _log,
critical: _log,
default: _log
}
})
}