{"name":"winston-transport","description":"Base stream implementations for winston@3 and up. ","version":"1.0.1","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":"00a18bbc42c21ea1f6c2a87f9aff65c7dc07b6c4","_id":"winston-transport@1.0.1","_shasum":"05926035c86f765d9e1e5904f9bbb8f6a0e605ac","_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":"05926035c86f765d9e1e5904f9bbb8f6a0e605ac","tarball":"http://registry-npm.ywwl.com/winston-transport/download/winston-transport-1.0.1.tgz","integrity":"sha512-k0BDpr2CtmM6KF2qj213PYy8Rsg6OeQYQtVZDJneSj8Xehb79pBaYxamBH61qbs+cfavukd27bVoRkZOfXAjBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8K/qyyWozgvGyNDau/3rTztyeC7XExvn376o3wqiXsQIgJZv8IHIIbI9+Agp4tHEz/kYVQ8KGnVHAT//9zPagzPM="}],"size":3644,"noattachment":false,"key":"/winston-transport/-/winston-transport-1.0.1.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":1448650713151,"_cnpm_publish_time":1448650713151,"dist-tags":{"latest":"4.9.0"}}