{"name":"winston-transport","description":"Base stream implementations for winston@3 and up. ","version":"1.0.2","main":"index.js","scripts":{"test":"istanbul cover ./node_modules/.bin/_mocha test/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/winstonjs/winston-transport.git"},"keywords":["winston","transport","winston3"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/winstonjs/winston-transport/issues"},"homepage":"https://github.com/winstonjs/winston-transport#readme","gitHead":"7864a77ea8d5417ce7ef557e39c11a29a56827cb","_id":"winston-transport@1.0.2","_shasum":"2460dbaedb240dc402f377e2710efc7732ae8408","_from":".","_npmVersion":"2.14.5","_nodeVersion":"4.2.2","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"indexzero","email":"charlie.robbins@gmail.com"}],"dist":{"shasum":"2460dbaedb240dc402f377e2710efc7732ae8408","tarball":"http://registry-npm.ywwl.com/winston-transport/download/winston-transport-1.0.2.tgz","integrity":"sha512-DGAwTmibtaVntRZTyf1GPDdsHAlpSzlLVZJZll/S0CjyAIl/P6AqskrAzB6AvW6F07Z9r21hlq/feCBdsmJR1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpYgNhAOPEvVc8Z76JqAjW87Oruv9hdH7Lu/eSJFgZYQIgO1ds6piCTB1sJwKPD6DDBNtZiWNuIp1ra4nJbIXc1vM="}],"size":3681,"noattachment":false,"key":"/winston-transport/-/winston-transport-1.0.2.tgz"},"directories":{},"readme":"# winston-transport\n\nThe base `TransportStream` implementation for `winston >= 3`. Use these to\nwrite ecosystem Transports for `winston`.\n\n## Usage\n\n``` js\nconst Transport = require('winston-transport');\nconst util = require('util');\n\n//\n// Inherit from `winston-transport` so you can take advantage\n// of the base functionality and `.exceptions.handle()`.\n//\nmodule.exports = class CustomTransport extends Transport {\n  constructor(opts) {\n    super(opts);\n\n    //\n    // Consume any custom options here. e.g.:\n    // - Connection information for databases\n    // - Authentication information for APIs (e.g. loggly, papertrail,\n    //   logentries, etc.).\n    //\n  }\n\n  log(info, callback) {\n    setImmediate(() => {\n      this.emit('logged', info);\n    });\n\n    // Perform the writing to the remote service\n\n    callback();\n  }\n};\n```\n\n## Tests\n\nTests are written with `mocha`, `nyc`, `assume`, and \n`abstract-winston-transport`. They can be run with `npm`:\n\n``` bash\nnpm test\n```\n\n##### Author: [Charlie Robbins](https://github.com/indexzero)\n##### LICENSE: MIT\n","publish_time":1448887636320,"_cnpm_publish_time":1448887636320,"dist-tags":{"latest":"4.9.0"}}