{"_id":"@codibre/winston-redis","_rev":"1-f0561c96ec6c28acc75b0584927f01b5","name":"@codibre/winston-redis","dist-tags":{"latest":"3.1.1"},"versions":{"3.1.1":{"name":"@codibre/winston-redis","description":"A fixed-length Redis transport for winston","version":"3.1.1","author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/winstonjs/winston-redis.git"},"keywords":["logging","sysadmin","tools","winston","redis"],"dependencies":{"async":"^2.6.3","lodash":"^4.17.21","redis":"^3.1.2","winston-transport":"^4.4.1"},"devDependencies":{"abstract-winston-transport":"^0.5.1","mocha":"^5.2.0"},"peerDependencies":{"winston":"^3.3.3"},"main":"./lib/winston-redis","scripts":{"test":"mocha test/*-test.js --exit"},"engines":{"node":">=8.11.x"},"license":"MIT","gitHead":"98b0999c231e1605cfbf72d68ba483c0db417ce0","bugs":{"url":"https://github.com/winstonjs/winston-redis/issues"},"homepage":"https://github.com/winstonjs/winston-redis#readme","_id":"@codibre/winston-redis@3.1.1","_nodeVersion":"14.17.4","_npmVersion":"7.24.0","dist":{"integrity":"sha512-nxSV1+LVjWzQAJRysBiN4ikg/cb6/l0NYsHZJc+EqPoqLs1IKFUGOXYfTCDJ0eBSihsi7wy9Nx4bY+DFOwSVXQ==","shasum":"2a9199aae2444f1abaf87f7f407bea2e67ecd013","tarball":"https://registry.npmjs.org/@codibre/winston-redis/-/winston-redis-3.1.1.tgz","fileCount":7,"unpackedSize":12946,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhu7omCRA9TVsSAnZWagAABzkQAKDe6Y/54zBqgzLTB1Gv\nr2LKBgtTbhXpEonTl8T5g8wndpXPSmZ9uyo1nOtdvb4tMiOMqyWCph0HmtXF\nM/Xt0t+OzzGE0zdh9ZJtlL1MsYP542pgOVGzPUJUMKhLss4QCbT5ygFBOfp8\nSQxWuQgLowaBz0bqWfwmnIjU9IRrcA8RwvQek2joafUYhRRDbNnIaYuiPrqd\nnvEtm/skt/69nJnkerLAUMsIM0ZsgQs+UDE0oxeCuvUJ9ACRp931vDj+E+Vq\n3jMFxU+4mu/jAyU5VfJtGFetKkamTGmor9X+ogk5HrhpJTUbfC3i4j8w5Lry\npEHvn4IlWw124V1XbZWXclyrMqrjN90DHiADJQaGgjUdaPgU1/tTYzeop91H\n2FKQP+8N48JvYV8Vb7++ULag1G0eOpHclt4rIZspxmIXStuyH06srU8Fu9Af\nCj/DdhDn3LAZGSgLG5hnE8xRj/DbLRj2l3+S9KlJbxopgLpM+mydU6y5/Zj1\nOrQfc9r4n9SfkfiyWEYx2Wpr4hWKab5NzOqG7zOWlYWIVzMyMRGpkEhoKfkm\n9qcGdsYYZ8DuPPzE/u0CNmKAY6xDTP8DrEwbZq015C8gKunnDXaTWkB1tLYN\nbsgFlJ3tlXj/+cEviXmwTmO3lBRw+q0CcA5xxxYIikDTCCg2umsD97f8CmpF\nLkht\r\n=W1Sh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC20WNoaxW9OrXGl5o7nyyskMurO1CI4rNIGQtdIDgOwQIgCRBjPH5AeCH046/27h3sh1HSTolIL4iEwjJ2gxUVh7A="}]},"_npmUser":{"name":"pedrosodre","email":"pedro@pedrosodre.dev"},"directories":{},"maintainers":[{"name":"pedrosodre","email":"pedro@pedrosodre.dev"},{"name":"danielcarvalho","email":"danielmarx08@gmail.com"},{"name":"gustavobeavis","email":"gustavo.beavis@gmail.com"},{"name":"paulododt","email":"vieira.dodt@gmail.com"},{"name":"fgabrielsilva","email":"fgabrielsilva@yahoo.com.br"},{"name":"danielgaleni","email":"danielgalleni@gmail.com"},{"name":"farenheith","email":"tos.oliveira@gmail.com"},{"name":"jeocoutinho","email":"jeovanocoutinho@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winston-redis_3.1.1_1639692838064_0.034056438664897826"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-16T22:13:58.003Z","3.1.1":"2021-12-16T22:13:58.263Z","modified":"2022-04-05T00:08:47.859Z"},"maintainers":[{"name":"pedrosodre","email":"pedro@pedrosodre.dev"},{"name":"danielcarvalho","email":"danielmarx08@gmail.com"},{"name":"gustavobeavis","email":"gustavo.beavis@gmail.com"},{"name":"paulododt","email":"vieira.dodt@gmail.com"},{"name":"fgabrielsilva","email":"fgabrielsilva@yahoo.com.br"},{"name":"danielgaleni","email":"danielgalleni@gmail.com"},{"name":"farenheith","email":"tos.oliveira@gmail.com"},{"name":"jeocoutinho","email":"jeovanocoutinho@gmail.com"}],"description":"A fixed-length Redis transport for winston","homepage":"https://github.com/winstonjs/winston-redis#readme","keywords":["logging","sysadmin","tools","winston","redis"],"repository":{"type":"git","url":"git+ssh://git@github.com/winstonjs/winston-redis.git"},"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"bugs":{"url":"https://github.com/winstonjs/winston-redis/issues"},"license":"MIT","readme":"# winston-redis\n\nA capped Redis transport for [winston][0].\n\n## Requirements\n\n- NodeJS 8.11.x\n- Winston 3.x\n\n## Usage\n``` js\n  const winston = require('winston');\n  const redisTransport = require('winston-redis');\n\n  const logger = winston.createLogger({\n    level: 'info',\n    transports: [\n      new redisTransport()\n    ]\n  });\n\n  logger.log({\n    level: \"info\",\n    message: \"redis is awesome\",\n    reason: \"it's fast\" // this will get stored as meta data\n  });\n```\n\nThis transport accepts the options accepted by the [node-redis][1] client:\n\n* __host:__ (Default **localhost**) Remote host of the Redis server\n* __port:__ (Default **6379**) Port the Redis server is running on.\n* __auth:__ (Default **None**) Password set on the Redis server\n\nIn addition to these, the Redis transport also accepts the following options.\n\n* __redis:__ Either the redis client or the options for the redis client\n* __length:__ (Default **200**) Number of log messages to store.\n* __container:__ (Default **winston**) Name of the Redis container you wish your logs to be in.\n* __channel:__ (Default **None**) Name of the Redis channel to stream logs from.\n* __meta:__ (Default **{}**) Custom fields to add to each log.\n* __flatMeta__: (Default **false**) Store meta data at the top level of the object rather than within a child `meta` object.\n\n*Metadata:* Logged as JSON literal in Redis\n\n## Installation\n\n### Installing npm (node package manager)\n\n``` bash\n  $ curl http://npmjs.org/install.sh | sh\n```\n\n### Installing winston-redis\n\n``` bash\n  $ npm install winston\n  $ npm install winston-redis\n```\n\n## Run Tests\nWinston-redis tests are written in [mocha][2], using [Abstract Winston Transport][3] and designed to be run with npm.\n\n```\n  npm test\n```\n\n#### Author: [Charlie Robbins](http://github.com/indexzero)\n\n[0]: https://github.com/winstonjs/winston\n[1]: https://github.com/mranney/node_redis\n[2]: https://mochajs.org\n[3]: https://github.com/winstonjs/abstract-winston-transport\n","readmeFilename":"README.md"}