{"name":"abstract-logging","version":"1.0.0","description":"A noop logger that conforms to the Log4j interface for modules to stub out internal logging","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/jsumners/abstract-logging.git"},"keywords":["log","logging","logger","pino"],"author":{"name":"James Sumners","email":"james.sumners@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jsumners/abstract-logging/issues"},"homepage":"https://github.com/jsumners/abstract-logging#readme","gitHead":"114d7a55adf23c992ec57c24f515c825fd0bcd57","_id":"abstract-logging@1.0.0","_shasum":"8b7deafd310559bc28f77724dd1bb30177278c1b","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"jsumners","email":"james.sumners@gmail.com"},"dist":{"shasum":"8b7deafd310559bc28f77724dd1bb30177278c1b","tarball":"http://registry-npm.ywwl.com/abstract-logging/download/abstract-logging-1.0.0.tgz","integrity":"sha512-CWDjsyA74oOOK6ekFOE00fEUR/twE2SUmXWFQpF1J1fxaq9wSI2tnK3z0vAhpEcmCqw8xD/+A2M2a2M+3bCe8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGYNegD0YC4aFOZFXZhCENHXmbHFLLPh5TxYBUEOHj8VAiEArbYSGA8pkAy4zJpDskFqk6vLA3z+N5kTsLUHYtyAqkA="}],"size":936,"noattachment":false,"key":"/abstract-logging/-/abstract-logging-1.0.0.tgz"},"maintainers":[{"name":"jsumners","email":"james.sumners@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/abstract-logging-1.0.0.tgz_1476975062311_0.956530021969229"},"directories":{},"readme":"# abstract-logging\n\nThis module provides an interface for modules to include so that they can\nsupport logging via an external logger that conforms to the standard Log4j\ninterface. One such logger is [Pino](https://npm.im/pino). This module\nis intended for modules that are meant to be used by other modules.\n\nExample:\n\n```js\n'use strict'\n\nfunction AwesomeLibrary (options) {\n  this.log = (options.logger) ? options.logger : require('abstract-logging')\n}\n\nAwesomeLibrary.prototype.coolMethod = function () {\n  this.log.trace('AwesomeLibrary.coolMethod was invoked')\n  return {}\n}\n\nmodule.exports = AwesomeLibrary\n```\n\n## Interface\n\nAvailable methods:\n\n+ `fatal`\n+ `error`\n+ `warn`\n+ `info`\n+ `debug`\n+ `trace`\n\nAll methods are no operation functions.\n\nSome loggers, like [Pino](https://getpino.io/), implement a `child()` method. This method can be easily added to an `abstract-logging` instance when stubbing out such loggers:\n\n```js\nconst logger = require('abstract-logging')\nlogger.child = () => logger\n```\n\n## License\n\n[MIT License](http://jsumners.mit-license.org/)\n","publish_time":1476975063931,"_cnpm_publish_time":1476975063931,"dist-tags":{"latest":"2.0.1"}}