{"_id":"pino-tee","_rev":"18-a2fb8ba7afc5ff46455d821e4e8eef6b","name":"pino-tee","dist-tags":{"latest":"0.4.0"},"versions":{"0.1.0":{"name":"pino-tee","version":"0.1.0","keywords":["pino","logger","tee","level","multiple","multi","stream"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","_id":"pino-tee@0.1.0","maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"homepage":"https://github.com/pinojs/pino-tee#readme","bugs":{"url":"https://github.com/pinojs/pino-tee/issues"},"dist":{"shasum":"e1112d99c42a03da1728c0a1ea85f3a827099073","tarball":"https://registry.npmjs.org/pino-tee/-/pino-tee-0.1.0.tgz","integrity":"sha512-IRLZY8VjLtYRlsO6+YGGEfmJ91CxmeGHqvh/Oj0lj+ZhXIHWaZ7JL5uVMPai68tP71aS3cqKaUmHHT0mVbgsAQ==","signatures":[{"sig":"MEQCIC8wdFCOfC7+yq1i2ohEOUuVTJTZ1eKt2EEuucptcj/LAiAg5OES1VeBNjE1XUkkWqCfXs1b7xO47PLx9QnHlLfzOA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"tee.js","_from":".","_shasum":"e1112d99c42a03da1728c0a1ea85f3a827099073","gitHead":"3beebf109fc73a910a1137115ee305a9ed172ff7","scripts":{"test":"standard | snazzy && tap test/*.js"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"precommit":"test","repository":{"url":"git+https://github.com/pinojs/pino-tee.git","type":"git"},"_npmVersion":"3.10.8","description":"Tee pino logs into a file, with multiple levels","directories":{},"_nodeVersion":"6.9.1","dependencies":{"pino":"^3.0.5","pump":"^1.0.1","split2":"^2.1.0","minimist":"^1.2.0","fast-json-parse":"^1.0.2","readable-stream":"^2.2.2","cloneable-readable":"^1.0.0"},"devDependencies":{"tap":"^8.0.1","tmp":"0.0.31","snazzy":"^5.0.0","standard":"^8.6.0","pre-commit":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/pino-tee-0.1.0.tgz_1481644758348_0.9228841005824506","host":"packages-12-west.internal.npmjs.com"}},"0.1.1":{"name":"pino-tee","version":"0.1.1","keywords":["pino","logger","tee","level","multiple","multi","stream"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","_id":"pino-tee@0.1.1","maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"homepage":"https://github.com/pinojs/pino-tee#readme","bugs":{"url":"https://github.com/pinojs/pino-tee/issues"},"bin":{"pino-tee":"./tee.js"},"dist":{"shasum":"bfd66fe63e121f4b4bbf132dd62b5e4a6cf5bdc1","tarball":"https://registry.npmjs.org/pino-tee/-/pino-tee-0.1.1.tgz","integrity":"sha512-/aOkdU/C3n7vPDtSSKNFZKYw72gJbfIhocwhryrQTu1PvocqXgAy8omPPO0tTiuyZnngKSMn+CaCyco8tfDR2g==","signatures":[{"sig":"MEUCIQCgT20k/cG3PWrX/YCfZhAp0IR1A1Vz7AKi0bMfSPxVrQIgMHe5qDa2ZkhCIO/ELddtLmQdhPz11M27TQxL/faKmxs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"tee.js","_from":".","_shasum":"bfd66fe63e121f4b4bbf132dd62b5e4a6cf5bdc1","gitHead":"dfa14ba2051e102514c8e6ab4539406cb610727a","scripts":{"test":"standard | snazzy && tap test/*.js"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"precommit":"test","repository":{"url":"git+https://github.com/pinojs/pino-tee.git","type":"git"},"_npmVersion":"3.10.8","description":"Tee pino logs into a file, with multiple levels","directories":{},"_nodeVersion":"6.9.1","dependencies":{"pino":"^3.0.5","pump":"^1.0.1","split2":"^2.1.0","minimist":"^1.2.0","fast-json-parse":"^1.0.2","readable-stream":"^2.2.2","cloneable-readable":"^1.0.0"},"devDependencies":{"tap":"^8.0.1","tmp":"0.0.31","snazzy":"^5.0.0","standard":"^8.6.0","pre-commit":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/pino-tee-0.1.1.tgz_1481651538692_0.3621124087367207","host":"packages-12-west.internal.npmjs.com"}},"0.1.2":{"name":"pino-tee","version":"0.1.2","keywords":["pino","logger","tee","level","multiple","multi","stream"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","_id":"pino-tee@0.1.2","maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"homepage":"https://github.com/pinojs/pino-tee#readme","bugs":{"url":"https://github.com/pinojs/pino-tee/issues"},"bin":{"pino-tee":"./tee.js"},"dist":{"shasum":"73bd61faa6fca25efb1b98dbdd54534431db0693","tarball":"https://registry.npmjs.org/pino-tee/-/pino-tee-0.1.2.tgz","integrity":"sha512-5xwQlc2rJxnvpGYJNlxjw2lE/+5P56j5c40pcRxpRQLLhi7KzJ9+YvdnMEIrVHwnuvKg7Y/eFaAkT6Fl6tSGlg==","signatures":[{"sig":"MEUCIQDaF0hKApEoZRsAT+Ar5+bCilpSyFmeA4dhmu4/xhWS+gIgFZ3MQfq9ZdzVdXXV73sECVHgm3WVlGnlHJU766NCofY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"tee.js","_from":".","_shasum":"73bd61faa6fca25efb1b98dbdd54534431db0693","gitHead":"8ae344d472439d4997e4b03fff48c4b09c7e23f9","scripts":{"test":"standard | snazzy && tap test/*.js"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"precommit":"test","repository":{"url":"git+https://github.com/pinojs/pino-tee.git","type":"git"},"_npmVersion":"3.10.8","description":"Tee pino logs into a file, with multiple levels","directories":{},"_nodeVersion":"6.9.1","dependencies":{"pino":"^3.0.5","pump":"^1.0.1","split2":"^2.1.0","minimist":"^1.2.0","fast-json-parse":"^1.0.2","readable-stream":"^2.2.2","cloneable-readable":"^1.0.0"},"devDependencies":{"tap":"^8.0.1","tmp":"0.0.31","snazzy":"^5.0.0","standard":"^8.6.0","pre-commit":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/pino-tee-0.1.2.tgz_1481652901287_0.7035233890637755","host":"packages-12-west.internal.npmjs.com"}},"0.2.0":{"name":"pino-tee","version":"0.2.0","keywords":["pino","logger","tee","level","multiple","multi","stream"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","_id":"pino-tee@0.2.0","maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/pinojs/pino-tee#readme","bugs":{"url":"https://github.com/pinojs/pino-tee/issues"},"bin":{"pino-tee":"./tee.js"},"dist":{"shasum":"ea26f078cf243d341b09de58feaf05183425ec1e","tarball":"https://registry.npmjs.org/pino-tee/-/pino-tee-0.2.0.tgz","integrity":"sha512-xgVi1dwtZM0NDq5zN8q4rfW15EMrCw65v+UVoHeIg11TUEmwKFvxvdQtEnR1PYAlk1Mf/Tklb0pk2QefENkHUQ==","signatures":[{"sig":"MEMCHyBZfN5sI1arj5HiKSV/LgP6kr/WCC/hG8y7Ap/aN3wCICjEjPME7BdIc4ZERr4dL363xcHZL+aLUokWtF3BU766","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"tee.js","gitHead":"f0d399733f889149a368d2aa35e1f8631af33a70","scripts":{"test":"standard | snazzy && tap test/*.js"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"precommit":"test","repository":{"url":"git+https://github.com/pinojs/pino-tee.git","type":"git"},"_npmVersion":"5.3.0","description":"Tee pino logs into a file, with multiple levels","directories":{},"_nodeVersion":"6.11.1","dependencies":{"pino":"^4.7.0","pump":"^1.0.2","split2":"^2.1.1","minimist":"^1.2.0","fast-json-parse":"^1.0.3","readable-stream":"^2.3.3","cloneable-readable":"^1.0.0"},"devDependencies":{"tap":"^10.0.0","tmp":"0.0.33","snazzy":"^7.0.0","standard":"^10.0.0","pre-commit":"^1.2.2"},"_npmOperationalInternal":{"tmp":"tmp/pino-tee-0.2.0.tgz_1502955740084_0.14990119775757194","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"pino-tee","version":"0.2.1","keywords":["pino","logger","tee","level","multiple","multi","stream"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","_id":"pino-tee@0.2.1","maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/pinojs/pino-tee#readme","bugs":{"url":"https://github.com/pinojs/pino-tee/issues"},"bin":{"pino-tee":"./tee.js"},"dist":{"shasum":"8615d5f31391435c358e7b73ce92c275a1d6439e","tarball":"https://registry.npmjs.org/pino-tee/-/pino-tee-0.2.1.tgz","fileCount":9,"integrity":"sha512-uTsp6bySs4Jzl9gXX7laKxy7YiZSbvDqb9aeTxgS+Hx6mTnglLSwWkEkb6uema/OAFIoRWovnSnsoKNCjv8mzw==","signatures":[{"sig":"MEUCIHOqx6+V2JdOt0tf4Hr7SuItkQ3s8w1s6ilVa2ru6AjBAiEA8nYBjB8rTxannCZcWhgfF8YgUCMj+xO9yeYGfNxA18w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbKnw0CRA9TVsSAnZWagAAjNoP/2fl8gQ78AlEgjq3shvB\nXkpr3OEP5dD8pa8XBX3i0+MQ4pdTaSGpi4+a2cGzqf8UFlUFNqIHv44nantV\nFkz7FTUvIZZvevI0SlfoBxcYIBZJjHQrgBto6WLcgarsSjxbcufOvF3fLJ7A\nuxkgVoAHPKyVLSofBDiGR4jZKny+TdZ6V9/IqaTpkBNorb7KcTmRk7EbdY1n\n92d/09kqs7um+YdGMvrIflbbBYRQ4hXHWt/j0wN3P3zynFIEwbbA1STnElcb\nGaV9ChvvR5qnULwRRGXnn9s990bgk0Xk0oqMAu4Hf3S/Cm15sJrY9Js43Npe\nGALZhQgBCOE8swp7PnBUKG3kD8uFRlg/Qmt21uePML/pn5AcdwGH3T7mRpbW\nfYQMKAOiNiwbiLZ14HxG935dtOO3xjQUcbaPdLL6Sf1ZzFXsx1eIgejfaxXB\nkESSbeGYGgUpmjChmpTj/QRteu0YTHN1PtgMeGhYpKCUhgP7vIeha7W73JXc\nM4yul73yGhDppjNq4Hcc/lWxRltN1KVdDEY51b/smdb+Wu05IdIlhVyR5aR0\nFf3uaSoYVGLzoaY9dhaarzTQEh+kLBXm8+86ohI0r0lB6xcBjgjEFdqE1j0m\nCLav0ff+aw5hqzWuiNVGq/dj36d9p2xyK3BIc6Xs4PIVtQDM7maSPH8GjU+j\naZ0b\r\n=eHjS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"tee.js","gitHead":"087c727282726ae39dd2d781fb17133cb3e65b90","scripts":{"test":"standard | snazzy && tap test/*.js"},"_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"precommit":"test","repository":{"url":"git+https://github.com/pinojs/pino-tee.git","type":"git"},"_npmVersion":"6.1.0","description":"Tee pino logs into a file, with multiple levels","directories":{},"_nodeVersion":"10.4.1","dependencies":{"pino":"^4.7.0","pump":"^1.0.2","split2":"^2.1.1","minimist":"^1.2.0","fast-json-parse":"^1.0.3","readable-stream":"^2.3.3","cloneable-readable":"~1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^10.0.0","tmp":"0.0.33","snazzy":"^7.0.0","standard":"^10.0.0","pre-commit":"^1.2.2"},"_npmOperationalInternal":{"tmp":"tmp/pino-tee_0.2.1_1529510963039_0.24014015292440516","host":"s3://npm-registry-packages"}},"0.2.2":{"name":"pino-tee","version":"0.2.2","keywords":["pino","logger","tee","level","multiple","multi","stream"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","_id":"pino-tee@0.2.2","maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/pinojs/pino-tee#readme","bugs":{"url":"https://github.com/pinojs/pino-tee/issues"},"bin":{"pino-tee":"./tee.js"},"dist":{"shasum":"d030d122d4dd8a2d9af7e274bba068df506d35ab","tarball":"https://registry.npmjs.org/pino-tee/-/pino-tee-0.2.2.tgz","fileCount":9,"integrity":"sha512-MqhqUtlHir0bsnU35qfuuoDEx9fq/vrW0pS5n4nWZKe9C1C67dvVDgYdaawRurQG/7SFxDKvfmEWz/1pEUbPbw==","signatures":[{"sig":"MEUCIASu2NoD8EHbURA/az827hHuX3vL+reafTG2r5MGovBaAiEA2anpjy04F7IxqO/wIchf8loxPFIoaHMc1N4btnbhGQE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbKn1tCRA9TVsSAnZWagAAfJgQAKBGFGEfo1QjZYSwIsRW\nN5P8SDr4aRHtm5X22yoNgqVHhC0jvFb0RDqpPAUC9wJEfyk4IGGaEpxQhnuk\nKYX1KrVIPFCOyKbbUVPKDK8bLrbzqThMQoC1F/Ky2hAYLjIoTHnQNN4sZvn8\nOU4FEew3YxBDPeyBRmC5aMk5BgimwktDOepUSQMUqVDoLEBbE9ESpqTPmmVr\nA/UncHOvzfm1m03PfXDhgSKyxHsibRXnIRvhldCB4BQosMFoTu6m9ez3K32e\np5Ix0yNTk7SAgastKEGDw1efUCmaTvyRoJzDjIYN4b5OCTNsyMPyhlUnOeyC\nlpt3WuW2GqeL81l9IFF3UiDP28Df43VSk7XU5ChPTuxL7YVuK/PsUJ76L/XI\n1PrZQOEnsIfgOlfGdN1qfKrEq+kq0TkoEcuM5ZqevGbpzWwbaBhY/b1AN126\ntNT+PYtP/Vc88fG5ZyesMSp5/nnTyoSgK4B3j+vylLQ5D3UtK7HtaC73nk9o\nYEqk7ONH1DGCfE9tAu87FcUAy2rCem38khnXM4TKXa+iEihIBBrddmvRKmsH\nVhpiYtgO4gNlU1oZ0/QWTbt8WGsbX0/Mu8rrHJ+FzKBvP1f3xE1L5fgSeMBZ\n9idSynCuorvRtt6rgbEsrxlZE/18gimc/qr/f5S3R+0hoFOi8TPzspDgZcp2\ncS5B\r\n=qxaO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"tee.js","gitHead":"00da1f61a67cde836b12f3321dd8576a312be824","scripts":{"test":"standard | snazzy && tap test/*.js"},"_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"precommit":"test","repository":{"url":"git+https://github.com/pinojs/pino-tee.git","type":"git"},"_npmVersion":"6.1.0","description":"Tee pino logs into a file, with multiple levels","directories":{},"_nodeVersion":"10.4.1","dependencies":{"pino":"^4.7.0","pump":"^1.0.2","split2":"^2.1.1","minimist":"^1.2.0","fast-json-parse":"^1.0.3","readable-stream":"^2.3.3","cloneable-readable":"~1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^10.0.0","tmp":"0.0.33","snazzy":"^7.0.0","standard":"^10.0.0","pre-commit":"^1.2.2"},"_npmOperationalInternal":{"tmp":"tmp/pino-tee_0.2.2_1529511269632_0.40664364421085364","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"pino-tee","version":"0.3.0","keywords":["pino","logger","tee","level","multiple","multi","stream"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","_id":"pino-tee@0.3.0","maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/pinojs/pino-tee#readme","bugs":{"url":"https://github.com/pinojs/pino-tee/issues"},"bin":{"pino-tee":"./tee.js"},"dist":{"shasum":"310ad4ef889fd51d497c75a101fe81eac9792fca","tarball":"https://registry.npmjs.org/pino-tee/-/pino-tee-0.3.0.tgz","fileCount":9,"integrity":"sha512-WFiuxERPZFkh683lYup2VC01Q4EDZPIMa9e94kMYpcpS7MlHd9mMaDYZm1YB8ZLf+JqZHd4alWv3DSCd66HQEQ==","signatures":[{"sig":"MEUCIBeLJbUvnPmM+0Dn2oUguDHHU/kigg2bcepa8oo3E29VAiEAsC3GW6dsO4NuIqi47hb0utgR9ksKMxaD+8EqzQJei98=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14460,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4NQmCRA9TVsSAnZWagAAQ1sP+QAG5RkPaPwhu6yTs3qI\nwYC17k0dULIs62vu/DjlyVX5u5RmYHa6rGIsOxceigWlYzwO4RZaaZs/kjY8\nnQvDM9RVRl0bKExvWGDyUwLhhEzBZQHbltI99lY/S16YAcGw3thQWPkjgBd5\n0hWC2MtDZB/YnesoZIOYHTCeZOPKfbaQRK0Y4m8bo9PHic2NTcC9LxxqohyA\nO6Mdxo1qpalBuG+IofbSnkS0ndxHAYNaU7fPMZs1jagIxiVwBG3FxMAalPhJ\n34MfBWmx5bU2Z187HwxE1Y008kVWvxjp48b5YDFF3Vk7gRQIiS/APzCad3SN\nYU/VgVyAfvyyOQL1DSOQUIcGjfHEeTdy99gSDFisIyX6FGG9Kxgid6MfUsxA\ntVXRdjFhd1NG5GgMj3kscVGHNexgSIW/kt42IXM+r2NoK4mDkE/pI8savs/X\nqKpaRT98nKNBjcnQzXmlc2GIzhGRcapiV6MKrAztIEU3b9/3DZslUURRA2pZ\nzt8yLJ3dwxpY3QXk8JhXqq9LCObHu+obg6nwGCI/V4koSDvgjWK4O+KEntM2\n8Nmc8mRK0R4OhHiJkYWOkwI33Be+xJFEdONecDPbkFPO9H5J4y6Yqk8jE8ne\nykt9sTvP+6gTcXEwbKK13qDf//gRaeoM/HjpbP+ns8pkScP+tdxsbHAD5Rre\nhLAc\r\n=c28U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"tee.js","gitHead":"bb2268df2c49adc51b4b7e62bf3c624e11efb3e5","scripts":{"test":"standard | snazzy && tap test/*.js"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"precommit":"test","repository":{"url":"git+https://github.com/pinojs/pino-tee.git","type":"git"},"_npmVersion":"6.12.1","description":"Tee pino logs into a file, with multiple levels","directories":{},"_nodeVersion":"13.1.0","dependencies":{"pino":"^4.7.0","pump":"^1.0.2","split2":"^2.1.1","minimist":"^1.2.0","fast-json-parse":"^1.0.3","readable-stream":"^2.3.3","cloneable-readable":"~1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^10.0.0","tmp":"0.0.33","snazzy":"^7.0.0","standard":"^10.0.0","pre-commit":"^1.2.2"},"_npmOperationalInternal":{"tmp":"tmp/pino-tee_0.3.0_1575015462465_0.9803996119025884","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"pino-tee","version":"0.4.0","keywords":["pino","logger","tee","level","multiple","multi","stream"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","_id":"pino-tee@0.4.0","maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"watson","email":"w@tson.dk"}],"contributors":[{"name":"Salman Mitha","email":"salmanmitha@gmail.com"}],"homepage":"https://github.com/pinojs/pino-tee#readme","bugs":{"url":"https://github.com/pinojs/pino-tee/issues"},"bin":{"pino-tee":"tee.js"},"dist":{"shasum":"348d77f29322ea3d0dddfa24969f29494155af8c","tarball":"https://registry.npmjs.org/pino-tee/-/pino-tee-0.4.0.tgz","fileCount":23,"integrity":"sha512-R9dLawOisuE5zsCR7AYcdpTCxcCXqkj5CZlNkdSpl7dz6SkPbqrBkefoHmwgOu75zg0d9esK1T7/5Kysu+ojWw==","signatures":[{"sig":"MEQCIEhTb8lxdW7tSipJr/VUaF8yXj3dRIurTQ2w5wWVWIvAAiAFJrEDPkPBGS5CqZzBNNhW1E+My36ZcaERQC7oijspKQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27384},"main":"tee.js","gitHead":"84b864d17efad1669a3468b28e7d9a55029564c8","scripts":{"test":"eslint . && node --test"},"_npmUser":{"name":"jsumners","email":"james.sumners@gmail.com"},"repository":{"url":"git+https://github.com/pinojs/pino-tee.git","type":"git"},"_npmVersion":"10.9.4","description":"Tee pino logs into a file, with multiple levels","directories":{},"_nodeVersion":"22.22.0","dependencies":{"pino":"^10.3.1","pump":"^3.0.0","split2":"^4.0.0","minimist":"^1.2.5","fast-json-parse":"^1.0.3","readable-stream":"^4.0.0","cloneable-readable":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tmp":"^0.2.5","sinon":"^15.0.0","eslint":"^9.39.3","neostandard":"^0.12.2"},"_npmOperationalInternal":{"tmp":"tmp/pino-tee_0.4.0_1772798953571_0.7374359298647997","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2016-12-13T15:59:20.525Z","modified":"2026-07-29T19:41:25.847Z","0.1.0":"2016-12-13T15:59:20.525Z","0.1.1":"2016-12-13T17:52:20.812Z","0.1.2":"2016-12-13T18:15:03.331Z","0.2.0":"2017-08-17T07:42:20.970Z","0.2.1":"2018-06-20T16:09:23.097Z","0.2.2":"2018-06-20T16:14:29.782Z","0.3.0":"2019-11-29T08:17:42.574Z","0.4.0":"2026-03-06T12:09:13.734Z"},"bugs":{"url":"https://github.com/pinojs/pino-tee/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","homepage":"https://github.com/pinojs/pino-tee#readme","keywords":["pino","logger","tee","level","multiple","multi","stream"],"repository":{"url":"git+https://github.com/pinojs/pino-tee.git","type":"git"},"description":"Tee pino logs into a file, with multiple levels","contributors":[{"name":"Salman Mitha","email":"salmanmitha@gmail.com"}],"maintainers":[{"email":"hello@matteocollina.com","name":"matteo.collina"},{"email":"james.sumners@gmail.com","name":"jsumners"}],"readme":"# pino-tee\n\nTee [pino](https://github.com/pinojs/pino) logs into multiple files,\naccording to the given levels.\n\nWorks with any newline delimited json stream.\n\n## Install\n\n```bash\nnpm i pino-tee -g\n```\n\n## Usage\n\n##### CLI\n\nSpecify a minimum log level to write to file.\n\nThe following writes **info**, **warn** and **error** level logs to\n`./info-warn-error-log`, and all output of `app.js` to `./all-logs`:\n\n```bash\nnode app.js | pino-tee info ./info-warn-error-logs | tee -a ./all-logs\n```\n\n(using `tee -a ./all-logs` will both write to `./all-logs` and `stdout`,\nenabling piping of more pino transports)\n\n##### Pino V7+\n```javascript\nconst pino = require('pino')\n\nconst pinoTee = pino.transport({\n  target: 'pino-tee',\n  options: {\n    filters: {\n      info: 'info.log',\n      warn: 'warn.log'\n    }\n  }\n})\n\nconst logger = pino(pinoTee)\n\nlogger.info('example info log')\nlogger.error('example error log')\n```\n\n##### NodeJS\n\nYou can log to multiple files by spawning a child process. In the following\nexample pino-tee writes into three different files for warn, error & fatal log\nlevels.\n\n```javascript\nconst pino = require('pino')\nconst childProcess = require('child_process')\nconst stream = require('stream')\n\n// Environment variables\nconst cwd = process.cwd()\nconst { env } = process\nconst logPath = `${cwd}/log`\n\n// Create a stream where the logs will be written\nconst logThrough = new stream.PassThrough()\nconst log = pino({ name: 'project' }, logThrough)\n\n// Log to multiple files using a separate process\nconst child = childProcess.spawn(process.execPath, [\n  require.resolve('pino-tee'),\n  'warn', `${logPath}/warn.log`,\n  'error', `${logPath}/error.log`,\n  'fatal', `${logPath}/fatal.log`\n], { cwd, env, stdio: ['pipe', 'inherit', 'inherit'] })\n\nlogThrough.pipe(child.stdin)\n\n// Writing some test logs\nlog.warn('WARNING 1')\nlog.error('ERROR 1')\nlog.fatal('FATAL 1')\n```\n\nThis prints raw logs into log files, you can also print pretty logs to the\nconsole for development purposes. For that, you need to use\n[pino-multi-stream](http://npm.im/pino-multi-stream). See the example below\n\n```js\nconst pinoms = require('pino-multi-stream')\nconst childProcess = require('child_process')\nconst stream = require('stream')\n\nconst cwd = process.cwd()\nconst { env } = process\n\nconst logThrough = new stream.PassThrough()\nconst prettyStream = pinoms.prettyStream()\nconst streams = [\n  { stream: logThrough },\n  { stream: prettyStream }\n]\nconst log = pinoms(pinoms.multistream(streams))\n\nconst child = childProcess.spawn(process.execPath, [\n  require.resolve('pino-tee'),\n  'warn', `${__dirname}/warn`,\n  'error', `${__dirname}/error`,\n  'fatal', `${__dirname}/fatal`\n], { cwd, env })\n\nlogThrough.pipe(child.stdin)\n\n// Writing some test logs\nlog.warn('WARNING 1')\nlog.error('ERROR 1')\nlog.fatal('FATAL 1')\n```\n\nHere, we're tapping into the write stream that pino-tee gets and manually\nformatting the log line using `pino-pretty` to write on the `stdout`. Note that\nthe pretty printing is typically only done while developing.\n\n## API\n\n### pinoTee(source)\n\nCreate a new `tee` instance from source. It is an extended instance of\n[`cloneable-readable`](https://github.com/mcollina/cloneable-readable).\n\nExample:\n\n```js\nconst { tee } = require('pino-tee')\nconst fs = require('fs')\nconst stream = tee(process.stdin)\nstream.tee(fs.createWriteStream('errors'), line => line.level >= 50)\nstream.pipe(process.stdout)\n```\n\n### stream.tee(dest, [filter])\n\nCreate a new stream that will filter a given line based on some\nparameters. Each line is automatically parsed, or skipped if it is not\na newline delimited json.\n\nThe filter can be a `function` with signature `filter(line)`, where\n`line`  is a parsed JSON object. The filter can also be one of the\n[pino levels](https://github.com/pinojs/pino#loggerlevel) either\nas text or as a custom level number, in that case _all log lines with\nthat level or greater will be written_.\n\n<a name=\"acknowledgements\"></a>\n\n## Acknowledgements\n\nThis project was kindly sponsored by [nearForm](http://nearform.com).\n\n## License\n\nMIT\n","readmeFilename":"README.md","users":{"redstrike":true}}