{"_id":"@neo9/n9-node-log","_rev":"46-725f26d9ae4238b29a5a95ed01fd652a","name":"@neo9/n9-node-log","description":"Logging node module managing json or human format","dist-tags":{"latest":"5.0.0","rc":"5.0.0-rc.7"},"versions":{"2.2.2":{"name":"@neo9/n9-node-log","version":"2.2.2","description":"Neo9 Node Log Module","main":"dist/src/index.js","types":"dist/src/index.d.ts","files":["dist/src"],"scripts":{"build":"rimraf dist/ && tsc","lint":"tslint src/*.ts","test":"npm run lint && npm run build && nyc --reporter=lcov ava --verbose --serial dist/test/ && n9-sonar-generate","preversion":"npm test","prepublish":"npm run build"},"sonar":{"coverage.exclusions":"src/*.d.ts","ts.coverage.lcovReportPath":"./coverage/lcov.info","ts.tslint.path":"./node_modules/.bin/tslint","ts.tslint.configPath":"./tslint.json"},"repository":{"type":"git","url":"ssh://git@scm.bytefactory.fr:2222/n9node/n9-node-log.git"},"author":{"name":"Sebastien Chopin","email":"sebastien.chopin@neo9.fr"},"dependencies":{"@types/winston":"^2.3.5","winston":"^2.3.1"},"devDependencies":{"@types/fs-extra":"^4.0.0","@types/nock":"^8.2.1","@types/node":"^8.0.25","ava":"^0.22.0","fs-extra":"^4.0.1","@neo9/n9-node-sonar-generate":"^1.1.0","nock":"^9.0.14","nyc":"^11.1.0","rimraf":"^2.6.1","std-mocks":"^1.0.1","tmp-promise":"^1.0.3","tslint":"^5.7.0","typescript":"^2.4.2"},"gitHead":"dfbc8ce5489f4a56170d8daa8691c98587cd573a","_id":"@neo9/n9-node-log@2.2.2","_npmVersion":"5.3.0","_nodeVersion":"7.8.0","_npmUser":{"name":"atinux","email":"atinux@gmail.com"},"dist":{"integrity":"sha512-5HMLrkiuTz7khi6pZrOLXsBqKScDR1fjQ7ffeROZN4FZxqhPtbvk3Rs8Ok+jmEmyxxQ+OBkKynWZa9uKCKVdpw==","shasum":"555aa170e36cdbdcaa36da65f4cb0fa106ec9b91","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-2.2.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE4Cw819a/e6/6WAHX3J+iP3vn0Iv51Q6TNrTmGv796wAiA7BJrsM6ALO3lF1DlxqM+zQJJg5EszSzWSbzN7YjKryg=="}]},"maintainers":[{"name":"atinux","email":"atinux@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log-2.2.2.tgz_1504023390033_0.0819934462197125"},"directories":{}},"2.3.1":{"name":"@neo9/n9-node-log","version":"2.3.1","description":"Logging node module based on Winston","main":"dist/src/index.js","types":"dist/src/index.d.ts","files":["dist/src"],"nyc":{"include":["dist/src/"]},"scripts":{"build":"rimraf dist/ && tsc","lint":"tslint src/*.ts","test":"npm run lint && npm run build && nyc ava --verbose --serial dist/test/ && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"author":{"name":"Sebastien Chopin","email":"sebastien.chopin@neo9.fr"},"dependencies":{"@types/winston":"^2.3.5","winston":"^2.3.1"},"devDependencies":{"@types/fs-extra":"^4.0.0","@types/nock":"^8.2.1","@types/node":"^8.0.25","ava":"^0.22.0","codecov":"^2.3.0","fs-extra":"^4.0.1","nock":"^9.0.14","nyc":"^11.1.0","rimraf":"^2.6.1","std-mocks":"^1.0.1","tmp-promise":"^1.0.3","tslint":"^5.7.0","typescript":"^2.4.2"},"keywords":["node log","winston","log","logging","debug"],"gitHead":"d519836ded1c1a788fddddf5633527c9724587b0","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@2.3.1","_npmVersion":"5.3.0","_nodeVersion":"7.8.0","_npmUser":{"name":"atinux","email":"atinux@gmail.com"},"dist":{"integrity":"sha512-16MGDeRUWoptNyU1z6EvvhWZM2CotXhpruIjCIgHbu12Eq6Ff82gBkXcd8I7UPEtfQTevwGKcGulKi5q+cTd3Q==","shasum":"14ac75a978fd5c8a6045e9e22022c3a5c4bd538f","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-2.3.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGxf56jucxZgzlpZBLd2ZTQdE0nqM75GlhbDsYIqTgwuAiEAkXN7il+Ahv2ky3Rv7zoeCwnG7qRlkxIoXzqQfO+PUqY="}]},"maintainers":[{"email":"gdv@neo9.fr","name":"mrskyce"},{"email":"gaetan.senn@gmail.com","name":"gaetansenn"},{"email":"cyril.ballesta@neo9.fr","name":"cballesta"},{"email":"canacb1@gmail.com","name":"benjamincanac"},{"email":"atinux@gmail.com","name":"atinux"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log-2.3.1.tgz_1504084950801_0.8563859479036182"},"directories":{}},"2.4.0":{"name":"@neo9/n9-node-log","version":"2.4.0","description":"Logging node module based on Winston","main":"dist/src/index.js","types":"dist/src/index.d.ts","files":["dist/src"],"nyc":{"include":["dist/src/"]},"scripts":{"build":"rimraf dist/ && tsc","lint":"tslint src/*.ts","test":"npm run lint && npm run build && nyc ava --verbose --serial dist/test/ && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"author":{"name":"Sebastien Chopin","email":"sebastien.chopin@neo9.fr"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.0"},"devDependencies":{"@types/fs-extra":"^4.0.2","@types/nock":"^8.2.1","@types/node":"^8.0.45","ava":"^0.22.0","codecov":"^2.3.1","fs-extra":"^4.0.2","nock":"^9.0.22","nyc":"^11.2.1","rimraf":"^2.6.2","std-mocks":"^1.0.1","tmp-promise":"^1.0.3","tslint":"^5.7.0","typescript":"^2.5.3","winston-elasticsearch":"^0.5.3"},"keywords":["node log","winston","log","logging","debug"],"gitHead":"fb22f631fbaeb5444d34c116b5f0d9628643cccc","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@2.4.0","_npmVersion":"5.4.2","_nodeVersion":"8.5.0","_npmUser":{"name":"atinux","email":"atinux@gmail.com"},"dist":{"integrity":"sha512-7xgpO0W/RYpzosKuvCL4PQVrpKRpI9Zh4MA5oU5/HRM3aXq92IF/tCOVIKjOWtCPQ/hyVUqoUwdyOsfmwIjlDw==","shasum":"34efc92ca7b5a5c610e325ab5720c4b5d1776859","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-2.4.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUx9se5RHNjia9WZaTkzQL3ygUBU7DWxoOy8+OrTKcVwIhAO7Wu+r7Qk/2Orq5Ri3w83zfyvaVtEDtfUZYKCmXdDA0"}]},"maintainers":[{"email":"gdv@neo9.fr","name":"mrskyce"},{"email":"gaetan.senn@gmail.com","name":"gaetansenn"},{"email":"cyril.ballesta@neo9.fr","name":"cballesta"},{"email":"canacb1@gmail.com","name":"benjamincanac"},{"email":"atinux@gmail.com","name":"atinux"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log-2.4.0.tgz_1508416627238_0.8837332068942487"},"directories":{}},"2.5.0":{"name":"@neo9/n9-node-log","version":"2.5.0","description":"Logging node module based on Winston","main":"dist/src/index.js","types":"dist/src/index.d.ts","files":["dist/src"],"nyc":{"include":["dist/src/"]},"scripts":{"build":"rimraf dist/ && tsc","lint":"tslint src/*.ts","test":"npm run lint && npm run build && nyc ava --verbose --serial dist/test/ && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"author":{"name":"Sebastien Chopin","email":"sebastien.chopin@neo9.fr"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.0"},"devDependencies":{"@types/fs-extra":"^4.0.2","@types/nock":"^8.2.1","@types/node":"^8.0.45","ava":"^0.22.0","codecov":"^2.3.1","fs-extra":"^4.0.2","nock":"^9.0.22","nyc":"^11.2.1","rimraf":"^2.6.2","std-mocks":"^1.0.1","tmp-promise":"^1.0.3","tslint":"^5.7.0","typescript":"^2.5.3","winston-elasticsearch":"^0.5.3"},"keywords":["node log","winston","log","logging","debug"],"gitHead":"e08c66c4467adbb1297608301b15fbd29c41b6f9","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@2.5.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"dist":{"integrity":"sha512-I6dMFRZEX1jCqyVWYk90DjfG3vgg5UPKVRY1XMLUou0gqLu9hWHvqDV0zxL9jPsvkTYnMiKmKSgHm0BIsBK8nQ==","shasum":"f3b84455f0a5f5c2538e040bd6e5e00f35276155","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-2.5.0.tgz","fileCount":6,"unpackedSize":49268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa2LPyCRA9TVsSAnZWagAAym4P/R7X1m+kZx6q/NSoknJ0\ne2rdylAWYh/YhnsFeI7cUF5yCvICkFq0uJkfR49VpKTaSoFjyhJg7oqLWe1g\n9YTayZuoCaW+gnvq81ti+KOBXrLDy6YIJ9/2CZwq0+qo5iL2dtbiS+3lt+Pw\n9SQcAPED8TkcCbO6qelRxaMvAfW94Ui0fwlOg624x9D655tRj3kypziKvv3Y\ndB6myHMsJcxDkS8Aj4j0N7lx3xjidqFcf1+20YCOpxbWLrUkHimE4XByqoxk\n8OXEWgKjJPFzRKhguuxwpP5L+03Uhuvf5KFHp2647iMSBcLR+upXTSB0Izm5\nxmkrtkcVx4SEPDGKMyNddLCCTLcGVuvMgMomNynC9f9wRtt92wEyMVITDR1S\nzle1v0luAC/eOUG2ZK7nb8xkUYubki5XPmZZiEsdOCTCr0/sm93Q10lUGZz0\nB0iYaOprITbXcVsgWTum6PF6FGdxRtQXzDQCpkIszutXuSsYiLRuqHuxaXP2\na0G83L4m10Yl7IaMjQ0aYmsDPD2xkNpzoM7RL2zMHH04JjzlP2RaJSPahzx8\nD6IfnJznhwHoVsKJJvZT0P6m7CMVdwDB/JiEisjN6L1fLks72tZthp8aG+PQ\nysGSqNp8KKnipPaxBUGIcDnWNUHW6C1XS+djW2CPN303IPdNnGXsboS0zTzZ\nZmWK\r\n=ODAE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH9nk2c9k0yGEr8f6ZOlHBD/3HrqvLPbfdwG5hrxVbcOAiEAiDJ9ildiYpJMh6BGRh/935SUXHBSRyGu8RJ6avmUFgw="}]},"maintainers":[{"email":"canacb1@gmail.com","name":"benjamincanac"},{"email":"benjamindaniel902@gmail.com","name":"benjd90"},{"email":"cyril.ballesta@neo9.fr","name":"cballesta"},{"email":"gaetan.senn@gmail.com","name":"gaetansenn"},{"email":"gdv@neo9.fr","name":"mrskyce"},{"email":"victor.boissiere@neo9.fr","name":"victorboissiere"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_2.5.0_1524151281109_0.7463036276324377"},"_hasShrinkwrap":false},"2.5.1":{"name":"@neo9/n9-node-log","version":"2.5.1","description":"Logging node module based on Winston","main":"dist/src/index.js","types":"dist/src/index.d.ts","files":["dist/src"],"nyc":{"include":["dist/src/"]},"scripts":{"build":"rimraf dist/ && tsc","lint":"tslint src/*.ts","test":"npm run lint && npm run build && nyc ava --verbose --serial dist/test/ && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"author":{"name":"Sebastien Chopin","email":"sebastien.chopin@neo9.fr"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.0"},"devDependencies":{"@types/fs-extra":"^4.0.2","@types/nock":"^8.2.1","@types/node":"^8.0.45","ava":"^0.22.0","codecov":"^2.3.1","fs-extra":"^4.0.2","nock":"^9.0.22","nyc":"^11.2.1","rimraf":"^2.6.2","std-mocks":"^1.0.1","tmp-promise":"^1.0.3","tslint":"^5.7.0","typescript":"^2.5.3","winston-elasticsearch":"^0.5.3"},"keywords":["node log","winston","log","logging","debug"],"gitHead":"c26e93c65348a4137b24590923c5cf91a3905321","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@2.5.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"dist":{"integrity":"sha512-rnk8LZVayVMZKP+IeazgErP6fATkM7L0WnCcXWbuXwhVdrnF5Ry9JwZWR/CcUqEE97C1VPjwX4YAM1O1+OupOg==","shasum":"59eaf4ec270b95ca94b68220cd93a0b8365b68ae","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-2.5.1.tgz","fileCount":6,"unpackedSize":49268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa2MJFCRA9TVsSAnZWagAAMCMP+wbz5GiRGkljJZVkbCzk\nFL2VNhr3fJ2GytB5rK8ftaojQLIix6coh4/kNYzcnoQ2Ux57v274BwXr0uYf\nnKBT+43z0SdEELrEcQ8E63aKJZv8ob4nUxsmKFgIq97USgdnN8Wm/nAkqdvo\nT5MHVr6FUYOMHdYliNFs+QSRs5VnscddzS8V4A0VNCDNNWVXMynphC9ZJDTW\n6dNf0hCMXgn37mzcqwUvvBfXwkdaKtlzQLApwlxMcXCu5+4Ib7xjtmUSgUmf\nrrNsWJ+9YRVZdVqOt2mBmk+IKqF+nK1MX1lEk7D9Cg4EogLeEjSRvWPcpJ/C\n1yiDbobMBaA9hKZIfDtft06XX89d4ZYsMeJiAcsBHXDnrg1Od7ES2x4pUrD4\nR5jYk7dRmrhmxpIc4mpS82Ewlf69kwHi739S+uA3PwV1Ij8ozRj6xqfVnAsn\n0T1Ru7YT+NfU6kZe+TpnvqlYsJA6YtSMKbJLEImjr7GlzM0b7NpKbqoLjMpP\ntlJk150j3AlPPs+vnYCANGHCS4myJuGO7tlC4Cp6wrUCBTcRSPTUlyhhO/3f\ntfXLVDDE8oV9xbZ5UmD9PT1h0VTMagAGFN5cvm8g+v001/qu7y48oHFoPIn6\nvGypb8WVnfV03kGKXvquy+Fk4e4tRphxpEZ6JKwO0ugRfvMeAKHQ0gRqUZIm\nUps1\r\n=vmvN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGkRcUTL1Z9RFKIewgpQtCaZv/4VqpSgKhTBZ2dszbi+AiEA3Z0yy3u3R/RDj2h/twlXh11uPwyjdzPyfTNCa0dN+m0="}]},"maintainers":[{"email":"canacb1@gmail.com","name":"benjamincanac"},{"email":"benjamindaniel902@gmail.com","name":"benjd90"},{"email":"cyril.ballesta@neo9.fr","name":"cballesta"},{"email":"gaetan.senn@gmail.com","name":"gaetansenn"},{"email":"gdv@neo9.fr","name":"mrskyce"},{"email":"victor.boissiere@neo9.fr","name":"victorboissiere"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_2.5.1_1524154948533_0.566255942672367"},"_hasShrinkwrap":false},"2.5.2":{"name":"@neo9/n9-node-log","version":"2.5.2","description":"Logging node module based on Winston","main":"dist/src/index.js","types":"dist/src/index.d.ts","files":["dist/src"],"nyc":{"include":["dist/src/"]},"scripts":{"build":"rimraf dist/ && tsc","lint":"tslint src/*.ts","test":"npm run lint && npm run build && nyc ava --verbose --serial dist/test/ && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"author":{"name":"Sebastien Chopin","email":"sebastien.chopin@neo9.fr"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.0"},"devDependencies":{"@types/fs-extra":"^4.0.2","@types/nock":"^8.2.1","@types/node":"^8.0.45","ava":"^0.22.0","codecov":"^2.3.1","fs-extra":"^4.0.2","nock":"^9.0.22","nyc":"^11.2.1","rimraf":"^2.6.2","std-mocks":"^1.0.1","tmp-promise":"^1.0.3","tslint":"^5.7.0","typescript":"^2.5.3","winston-elasticsearch":"^0.5.3"},"keywords":["node log","winston","log","logging","debug"],"gitHead":"3cefaeccdaabea5004e5da552590bfd9467befc8","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@2.5.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"dist":{"integrity":"sha512-qgV2RXLOqKKMK/P5hh0wcqoWwp/uvQ+OWapq3J9yxE/uW7G7YwHGhNzvfHJLhiIwMUBdX5JVIvEGIQljjI04Rg==","shasum":"362ab1dadd02ab2ce845985175cdfd9625306864","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-2.5.2.tgz","fileCount":6,"unpackedSize":49323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa3x4uCRA9TVsSAnZWagAAzVIP/1hT//DbI/8UfqQLHZur\n+igue4kAZRGRUynej/Efg1v17IfJb9hRwXRTpi29Hzi3x9ULHuCP+vJSdnkQ\niew4bhU8gS9/TnP6J658xNMFPfwa30DM+TUBThNNiD6cnRTNJmkXjaApBkxR\nhHui+s/XJr6OwQw07u0L3RbomdoY2SjAqhxwfMxXKaNyOnH6EWz4McuFHJi5\neaTglV0sYXcWkf46UFDg95z1AlHrrKRafN7qusySw7BnCoKlyXMklDScc4ms\nR5zr1dMu2TAa/s+ChENjOmhESN/tL15Y7mpFzFAUTnXhWZZDdtwML1or3ibM\nabv0l3bws5Kju1B5dAaFE62SAr6ACSzMrLyfqBLtjY4hbLVH+9n9kmt1mInq\nDp+rwcEdyHAboB14Ll9jV1sI9lwbg7elgaKMJ8LMIYSDgGyWNAl4OxhxLoR8\nNM9cYYrqXMts//Twn/ND2PKOxWGG1NGeok3Nlosk1wZkaAZPzMWLP7KtCb99\nBPpr0icL2FbD7h7TBJbySzNhg/dlez4rdT8xP33/sb3gOWvHxCRRSdbeaJOq\njhFOIO1PRhRameU7LBGUcJ5QYIQBspbU7RGVToyFOoDgQgRPTC9sx5DADc76\n1vc7tOFy7fk/YX6h8x41+nC2c81b4OQmpKU5pkCMtrHwcruCbi9fY7Bus9t4\nVuGb\r\n=bpM/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOjpcYf7mamkgYFYZAcG9QXVCqiauV7OWa5Xzc/YDBEQIhAKw62QB1YSXODXGgQtHwqLAgNk5fO85Q5Ber5jmhagea"}]},"maintainers":[{"email":"canacb1@gmail.com","name":"benjamincanac"},{"email":"benjamindaniel902@gmail.com","name":"benjd90"},{"email":"cyril.ballesta@neo9.fr","name":"cballesta"},{"email":"gaetan.senn@gmail.com","name":"gaetansenn"},{"email":"gdv@neo9.fr","name":"mrskyce"},{"email":"victor.boissiere@neo9.fr","name":"victorboissiere"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_2.5.2_1524571693830_0.17822524117388494"},"_hasShrinkwrap":false},"2.6.0":{"name":"@neo9/n9-node-log","version":"2.6.0","description":"Logging node module based on Winston","main":"dist/src/index.js","types":"dist/src/index.d.ts","files":["dist/src"],"nyc":{"include":["dist/src/"]},"scripts":{"build":"rimraf dist/ && tsc","lint":"tslint src/*.ts","test":"npm run lint && npm run build && nyc ava --verbose --serial dist/test/ && nyc report --reporter=html","test:dev":"npm run lint --force && npm run build && nyc ava --verbose --serial dist/test/ && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"author":{"name":"Sebastien Chopin","email":"sebastien.chopin@neo9.fr"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.0"},"devDependencies":{"@types/fs-extra":"^4.0.2","@types/nock":"^8.2.1","@types/node":"^8.0.45","ava":"^0.22.0","codecov":"^2.3.1","fs-extra":"^4.0.2","nock":"^9.0.22","nyc":"^11.2.1","rimraf":"^2.6.2","std-mocks":"^1.0.1","tmp-promise":"^1.0.3","tslint":"^5.7.0","typescript":"^2.5.3","winston-elasticsearch":"^0.5.3"},"keywords":["node log","winston","log","logging","debug"],"gitHead":"dbd11ae9980b302a3d706f151dff4fcf806c1358","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@2.6.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"dist":{"integrity":"sha512-MKlsd2FynXLjJe/RPFgcK+RNBAg8Ij0I51qm0rYYAxvwhhVU8DlJMcU+U7P44W9TPFLoLLl++OwOiMRitpYAgw==","shasum":"9bbb4016c8719377b762d53efa85662a06c88207","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-2.6.0.tgz","fileCount":6,"unpackedSize":50336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBEANCRA9TVsSAnZWagAAjuAP/Rztr+29rA+GT0gaaciZ\nkLC01cGF7Qq042yW6ixRbDNeRJ6LlrpmPe3lCdziwdmcQ1y5qCP4vg/98VtT\nr0z/dK2cQ/ogKGOz0YfAjD6eMO47zgUc9sJBzs3oQN/cVGUXV1t+uCTsO6s5\nR+thLdzbXgU96EioNmlh3Rfgmac3fa/VH3cmgWnYSl04a+5CoAeFHriIDSuM\nlQsdULSBxpBO22pqIXY1tjM+b6Rb8fhKyJ1Gj0JxXcQLEPPGfzpQayjJtmEz\nzv93d7MhC1Bl4uDr7gQnFjr6qFNO48NWHjgXIZ1/IGbQG7UtzQGsBErBLQC7\nNFOxDTSRBh6TnU1C8x9u+WG+ZyjlVto7FTJY18oF+eWC++ecJBailCwgeJZB\nCsyThX1QQ82OtLJd5c1WOsk8UBOhEk/V7guHRgIGIeOq1WppEvVQODQQn2/d\njJcXFwKzAb3qIVwBqs3Z1NF5cwxp80kcQU7mAItPToOKNZBMRdQ74s/1m7mz\nG1J97EUS0doRvozdnwfoTwMcOzA0ebgcEQkLFv0Pt+LjJWdv46lPky2nmmlJ\ncQ9OXLm+uWGyT/SmawFXkidve3ORsmKVEuU4Ce4Kk5keJRocg5ev9oXOFwLg\nWYhWbORw+8LngXuU67qcEP9+n9xT580gyHPS31pAv/KMIiMVc5/jiv4t+h2K\nDzvr\r\n=SqFK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA/2K/TVgnIXNGihcIlxqUbdpvne4vITURc1acsCa86DAiEAhbIuBiek/toQF/Cvwm1EsZqSwYYFYIHKjMHBSW+3xu0="}]},"maintainers":[{"email":"canacb1@gmail.com","name":"benjamincanac"},{"email":"benjamindaniel902@gmail.com","name":"benjd90"},{"email":"cyril.ballesta@neo9.fr","name":"cballesta"},{"email":"gaetan.senn@gmail.com","name":"gaetansenn"},{"email":"gdv@neo9.fr","name":"mrskyce"},{"email":"victor.boissiere@neo9.fr","name":"victorboissiere"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_2.6.0_1527005195866_0.5322989601347965"},"_hasShrinkwrap":false},"3.0.0-rc.0":{"name":"@neo9/n9-node-log","version":"3.0.0-rc.0","description":"Logging node module based on Winston","keywords":["node log","winston","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"tslint --project tsconfig.json --format verbose '{src,test}/**/*.ts'","lint:apply":"npm run format && tslint --fix --project tsconfig.json '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=10.0.0"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.4"},"devDependencies":{"@ava/typescript":"^1.1.1","@commitlint/cli":"^8.3.5","@neo9/n9-coding-style":"^1.0.2","@release-it/conventional-changelog":"^1.1.0","@types/debug":"^4.1.5","@types/fs-extra":"^8.1.0","@types/nock":"^11.1.0","@types/node":"^13.11.0","ava":"^3.6.0","codecov":"^3.6.5","conventional-changelog-cli":"^2.0.31","fs-extra":"^9.0.0","husky":"^4.2.3","nock":"^12.0.3","nyc":"^15.0.1","prettier":"^2.0.4","release-it":"^13.5.1","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^2.0.2","ts-node":"^8.8.2","tslint":"^6.1.1","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.8.3","winston-elasticsearch":"0.5.9"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Winston.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 8.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.verbose('This is a verbose message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n    at Object.<anonymous> (/home/schopin/Neo9/node-ts-skeleton/src/index.ts:16:28)\n    at Module._compile (module.js:571:32)\n    at ...\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test durationMs=1000\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `verbose`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\n## Transports\n\nDefine the transporter(s) you want to use to store your logs, notice that you can combine them.\n\n### `console`\n\nWill output the logs into `process.stdout` and `process.stderr`.\n\n- Type: `Boolean`\n- Default: `true`\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\tconsole: false, // Don't output the logs into the console\n});\n```\n\n### `files`\n\nWill write the log output into specified file(s).\n\n- Type: `Array`\n- Default: `[]`\n- Properties:\n  - `level`: Level of messages to write into the file (default: `'info'`)\n  - `filename`: Path of the logfile\n  - `maxsize`: Max sizes in bytes of the logfile\n  - `maxFiles`: Limit the number of files created\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\tfiles: [\n\t\t{\n\t\t\tlevel: 'info',\n\t\t\tfilename: '/tmp/info-log.log',\n\t\t},\n\t],\n});\n```\n\n### `http`\n\n- Type: `Array`\n- Default: `[]`\n- Properties:\n  - `host`: (Default: `'localhost'`) Remote host of the HTTP logging endpoint\n  - `port`: (Default: `80` or `443`) Remote port of the HTTP logging endpoint\n  - `path`: (Default: `'/'`) Remote URI of the HTTP logging endpoint\n  - `auth`: (Default: None) An object representing the `username` and `password` for HTTP Basic Auth\n  - `ssl`: (Default: `false`) Value indicating if we should us HTTPS\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\thttp: [\n\t\t{\n\t\t\thost: 'my-logs.io',\n\t\t\tpath: '/save',\n\t\t\tssl: true,\n\t\t},\n\t],\n});\n```\n\n### `transports`\n\nUseful for adding custom transports into `n9-node-log`:\n\n- Type: `Array`\n- Default: `[]`\n\nExample:\n\n```ts\nimport * as WinstonElasticSearch from 'winston-elasticsearch';\n\nconst log = n9Log('test', {\n\tconsole: false,\n\ttransports: [\n\t\tnew WinstonElasticSearch({\n\t\t\tindex: 'n9-log',\n\t\t\tlevel: 'info',\n\t\t\tmappingTemplate: require('winston-elasticsearch/index-template-mapping.json'),\n\t\t\tflushInterval: 200,\n\t\t}),\n\t],\n});\n```\n","readmeFilename":"README.md","gitHead":"f96e58bcb32fcb6e888517242f8b258a9d70c43e","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@3.0.0-rc.0","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-VWiSxjbxDgLkLMbKUQ6ZABYCj/7frcGTCBbzkF92Cfv9IEIoR0tS7yXBgj9ecWtPNzpYugV0CINjThymexLybg==","shasum":"b899e26facd3dd3bc70da9b674069a31d22b86a4","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-3.0.0-rc.0.tgz","fileCount":7,"unpackedSize":60730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJei2xCCRA9TVsSAnZWagAAL5UP/16tejwsmjR9nNUMBSRo\nyc2BGfxAxnrwH3dSh5vuMroYik1pnikrh+/3KtqPIjDw4Kh3XMG819v9vTHq\nvbqf9TtDX2yvMgreFt2HB7mlZ+K1nZSKzoMkraGpwzSXSDIthH8a5fFLuXxK\nqy/StsMFh8AddmrsQJuZUE8r/ifwGax3W2mK1KDSdK/qOULGX4YOemGLynWS\nVbBtB2NAc0KYYy3IxGDPc/miZ/+eV1+N2y82FP4Gx7nL+VghQkjraCVBZQmw\nOSOKBYnnaskQvbAwvBsT113eSZY+bpZukzSvza4ukLcQiymsxtSz1kBUL0uy\n6PCgpHfo+ZI1JIzgUVzY2GBkVjJgj9o9jdTvo4xg5HeAwKxa9Q7RQAivoyip\nVt2ot9bBOSV5ZvmSdXtGZ6o8/qRH2OHfAKZBDHleoCfdOP2X3H62AWj52fd/\nB7lQKPvkuBLZD2cIMEShjaciXbll6lyixD1IbrMv3YIdFJ6RneuBf2pzJ9IN\nu/Cb535M5yY0Z4CakaCebier8vEWrmaPukfvnU3CoNfGJoydddFu5+gPpIEE\n0Ynud6wsn/bhfNW0sXvUz/gTdKhtkeREj1zp4Iac58vTMof0SAhE5mUslfXG\nkyzx8a5EyR1qmj9SeIKPunLdk47mvEpSOSc6lHgXctvp/y+hF9OtA0KRy47q\nC6Z0\r\n=Ey01\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDPXuNN4AcmAl5MTUMPu6pDX8Ib0+yWNsT1C3q3NCSq+AiEAiIcjXszg4JRMHozgpFgVUMRJjN3jtwy6ixzYwuejXtY="}]},"maintainers":[{"email":"canacb1@gmail.com","name":"benjamincanac"},{"email":"benjamindaniel902@gmail.com","name":"benjd90"},{"email":"cyril.ballesta@neo9.fr","name":"cballesta"},{"email":"clement.petit@neo9.fr","name":"cpetit"},{"email":"gdv@neo9.fr","name":"mrskyce"},{"email":"victor.boissiere@neo9.fr","name":"victorboissiere"}],"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_3.0.0-rc.0_1586195522234_0.4957919993278339"},"_hasShrinkwrap":false},"3.0.1-0":{"name":"@neo9/n9-node-log","version":"3.0.1-0","description":"Logging node module based on Winston","keywords":["node log","winston","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"tslint --project tsconfig.json --format verbose '{src,test}/**/*.ts'","lint:apply":"npm run format && tslint --fix --project tsconfig.json '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=10.0.0"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.4"},"devDependencies":{"@ava/typescript":"^1.1.1","@commitlint/cli":"^8.3.5","@neo9/n9-coding-style":"^1.0.2","@release-it/conventional-changelog":"^1.1.0","@types/debug":"^4.1.5","@types/fs-extra":"^8.1.0","@types/nock":"^11.1.0","@types/node":"^13.11.0","ava":"^3.6.0","codecov":"^3.6.5","conventional-changelog-cli":"^2.0.31","fs-extra":"^9.0.0","husky":"^4.2.3","nock":"^12.0.3","nyc":"^15.0.1","prettier":"^2.0.4","release-it":"^13.5.1","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^2.0.2","ts-node":"^8.8.2","tslint":"^6.1.1","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.8.3","winston-elasticsearch":"0.5.9"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Winston.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 8.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.verbose('This is a verbose message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n    at Object.<anonymous> (/home/schopin/Neo9/node-ts-skeleton/src/index.ts:16:28)\n    at Module._compile (module.js:571:32)\n    at ...\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test durationMs=1000\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `verbose`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\n## Transports\n\nDefine the transporter(s) you want to use to store your logs, notice that you can combine them.\n\n### `console`\n\nWill output the logs into `process.stdout` and `process.stderr`.\n\n- Type: `Boolean`\n- Default: `true`\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\tconsole: false, // Don't output the logs into the console\n});\n```\n\n### `files`\n\nWill write the log output into specified file(s).\n\n- Type: `Array`\n- Default: `[]`\n- Properties:\n  - `level`: Level of messages to write into the file (default: `'info'`)\n  - `filename`: Path of the logfile\n  - `maxsize`: Max sizes in bytes of the logfile\n  - `maxFiles`: Limit the number of files created\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\tfiles: [\n\t\t{\n\t\t\tlevel: 'info',\n\t\t\tfilename: '/tmp/info-log.log',\n\t\t},\n\t],\n});\n```\n\n### `http`\n\n- Type: `Array`\n- Default: `[]`\n- Properties:\n  - `host`: (Default: `'localhost'`) Remote host of the HTTP logging endpoint\n  - `port`: (Default: `80` or `443`) Remote port of the HTTP logging endpoint\n  - `path`: (Default: `'/'`) Remote URI of the HTTP logging endpoint\n  - `auth`: (Default: None) An object representing the `username` and `password` for HTTP Basic Auth\n  - `ssl`: (Default: `false`) Value indicating if we should us HTTPS\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\thttp: [\n\t\t{\n\t\t\thost: 'my-logs.io',\n\t\t\tpath: '/save',\n\t\t\tssl: true,\n\t\t},\n\t],\n});\n```\n\n### `transports`\n\nUseful for adding custom transports into `n9-node-log`:\n\n- Type: `Array`\n- Default: `[]`\n\nExample:\n\n```ts\nimport * as WinstonElasticSearch from 'winston-elasticsearch';\n\nconst log = n9Log('test', {\n\tconsole: false,\n\ttransports: [\n\t\tnew WinstonElasticSearch({\n\t\t\tindex: 'n9-log',\n\t\t\tlevel: 'info',\n\t\t\tmappingTemplate: require('winston-elasticsearch/index-template-mapping.json'),\n\t\t\tflushInterval: 200,\n\t\t}),\n\t],\n});\n```\n","readmeFilename":"README.md","gitHead":"4eb1131315488d68ced5e949ddac938d5a17bc9b","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@3.0.1-0","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-B9EsMCq09W8z+Zjrbai4uV5OQcDVLjv2WSwmQ0FklBcbTqokgN8FGvROErGvX/NDPPwAeQNQ+UnrlIOyKWmWGA==","shasum":"8370c949a610a72f5c490347fe18318d23fa9b2b","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-3.0.1-0.tgz","fileCount":7,"unpackedSize":60947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJei2znCRA9TVsSAnZWagAAVP4QAIaH+AeWFt1gTUxEPl48\nXqZYb5slx3WjUejTDod9DA+vllBIvpBnpzXpAjbUktITAnxAEh4tu/pxcQOU\n8QvPPolVLLnjArAwau50wpxHtg7qiAaEJ/i7l0MMi/jKSVjjz0OGVIIQ8vZS\noODdK/W+tYbaOKSXZz4FPtcYVE1eG51LInlqbtyHXEHHdyRhzu8TGa5MjCl2\nw2HPTQqlSNyAQe2ybToY7bkOTbci4tpiNVv0AtjV4ytz35mBg8NTGusNlaXT\nFHutzjEKjwMWAlyL/y4Vx3giLZL9acGM08UYwmyQb51XRWslsJd+q6ABr6t9\nkK3UrECUJ83AYfUOc/yMail4loZHKVI7d1/LKJzTFKfapjb4idoiqBxt8Efy\nJXeRF1DHX46BNEXKfJ0uh/Tv0crPpYsapWt8q7Py6TPYC2cko4XzIh1Y+21Q\nlQqeJiQOr0oCrPjY3WzwVdWHYE+vYpVyjtwnVfqepEnhdrCnaIcOmwPxiKYj\nfonIbpz7/PgFx9rAa3Lx8ePmbG4ndl4QcJeXbteMalFMGKDjDbmI2n68bnLy\n8XgwyN+M8Ja5mXtbKsrS+yt2dpnq8hCLQlrzCMKS2D1ocPE+XuIvPzNK34QH\ne/RR+UMKsMVTOH3MYKb/3jPpNkci0XmmNwdei6fDTEj/wr0F1Rjxm95i7E3t\nVInW\r\n=kx5o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGhNQWj1xjBIqlXpyxP1FOhIbVm8LVo8a4LZzQtked7rAiEAqkSzxFui6BzqKmUQs+IJ5GcWXJcBiUsFbidFk+86td4="}]},"maintainers":[{"email":"canacb1@gmail.com","name":"benjamincanac"},{"email":"benjamindaniel902@gmail.com","name":"benjd90"},{"email":"cyril.ballesta@neo9.fr","name":"cballesta"},{"email":"clement.petit@neo9.fr","name":"cpetit"},{"email":"gdv@neo9.fr","name":"mrskyce"},{"email":"victor.boissiere@neo9.fr","name":"victorboissiere"}],"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_3.0.1-0_1586195687325_0.9905057058849638"},"_hasShrinkwrap":false},"3.0.0-rc.1":{"name":"@neo9/n9-node-log","version":"3.0.0-rc.1","description":"Logging node module based on Winston","keywords":["node log","winston","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"tslint --project tsconfig.json --format verbose '{src,test}/**/*.ts'","lint:apply":"npm run format && tslint --fix --project tsconfig.json '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=10.0.0"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.4"},"devDependencies":{"@ava/typescript":"^1.1.1","@commitlint/cli":"^8.3.5","@neo9/n9-coding-style":"^1.0.2","@release-it/conventional-changelog":"^1.1.0","@types/debug":"^4.1.5","@types/fs-extra":"^8.1.0","@types/nock":"^11.1.0","@types/node":"^13.11.0","ava":"^3.6.0","codecov":"^3.6.5","conventional-changelog-cli":"^2.0.31","fs-extra":"^9.0.0","husky":"^4.2.3","nock":"^12.0.3","nyc":"^15.0.1","prettier":"^2.0.4","release-it":"^13.5.1","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^2.0.2","ts-node":"^8.8.2","tslint":"^6.1.1","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.8.3","winston-elasticsearch":"0.5.9"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Winston.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 8.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.verbose('This is a verbose message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n    at Object.<anonymous> (/home/schopin/Neo9/node-ts-skeleton/src/index.ts:16:28)\n    at Module._compile (module.js:571:32)\n    at ...\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test durationMs=1000\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `verbose`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\n## Transports\n\nDefine the transporter(s) you want to use to store your logs, notice that you can combine them.\n\n### `console`\n\nWill output the logs into `process.stdout` and `process.stderr`.\n\n- Type: `Boolean`\n- Default: `true`\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\tconsole: false, // Don't output the logs into the console\n});\n```\n\n### `files`\n\nWill write the log output into specified file(s).\n\n- Type: `Array`\n- Default: `[]`\n- Properties:\n  - `level`: Level of messages to write into the file (default: `'info'`)\n  - `filename`: Path of the logfile\n  - `maxsize`: Max sizes in bytes of the logfile\n  - `maxFiles`: Limit the number of files created\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\tfiles: [\n\t\t{\n\t\t\tlevel: 'info',\n\t\t\tfilename: '/tmp/info-log.log',\n\t\t},\n\t],\n});\n```\n\n### `http`\n\n- Type: `Array`\n- Default: `[]`\n- Properties:\n  - `host`: (Default: `'localhost'`) Remote host of the HTTP logging endpoint\n  - `port`: (Default: `80` or `443`) Remote port of the HTTP logging endpoint\n  - `path`: (Default: `'/'`) Remote URI of the HTTP logging endpoint\n  - `auth`: (Default: None) An object representing the `username` and `password` for HTTP Basic Auth\n  - `ssl`: (Default: `false`) Value indicating if we should us HTTPS\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\thttp: [\n\t\t{\n\t\t\thost: 'my-logs.io',\n\t\t\tpath: '/save',\n\t\t\tssl: true,\n\t\t},\n\t],\n});\n```\n\n### `transports`\n\nUseful for adding custom transports into `n9-node-log`:\n\n- Type: `Array`\n- Default: `[]`\n\nExample:\n\n```ts\nimport * as WinstonElasticSearch from 'winston-elasticsearch';\n\nconst log = n9Log('test', {\n\tconsole: false,\n\ttransports: [\n\t\tnew WinstonElasticSearch({\n\t\t\tindex: 'n9-log',\n\t\t\tlevel: 'info',\n\t\t\tmappingTemplate: require('winston-elasticsearch/index-template-mapping.json'),\n\t\t\tflushInterval: 200,\n\t\t}),\n\t],\n});\n```\n","readmeFilename":"README.md","gitHead":"8fad0f064badad4ba163daccf16092232055b083","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@3.0.0-rc.1","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-L3Bp3Kn9j+EUOdu9oUhqr8r0GryY0kB3oVT9PhvH7/ro9yC2j5l3rkR6QAfHIiCaDQ1azQ5kMRFf2cVqGLATSw==","shasum":"06df7a71ec834ae828c52b3af36b6803c0bc6446","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-3.0.0-rc.1.tgz","fileCount":7,"unpackedSize":61045,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJei21ACRA9TVsSAnZWagAA0WwP/18F4VEGXzV3OG+C7ybm\ngjKHZVmwzts1TsX+Opng4r/7TUbv/Eb3hihsX8C946CS7wNiMevWefnKPxp0\nZF5WWICmL4tyZWo6A4Xw8dNswx8oVsLbA1ci0UyrAxHJ9JApXxuqvu2g4rwW\nDB22sukFyWKkNQf01kPByqO5EVj4ARIOTx0vL4MSZHLD+12IoHAhXqfaf2Rf\nKLVW4e+Mp+AKYTyrWxLfEDYxmtgHmLxb0MjHEB9JdZMvxM6jmLP/bDIQt4rt\ntv/leCE6Zwh/jjpoz7jOyf6WXHFdsTpsCB0zO2QbiXEzSrIyJ1oNPYHgknOv\nWvkEEiu6wciyqQUTQ3PBNfkUndEfPDnR6NGY4ZlME0JO4quhTUYqZibJWJd1\nWW5jTYpLzGGNTXJL14uwSekiI0q9PAbVXPXVAQzwljLEL9V/7ecleJ3n4C0t\nBBjE6bETcIiBekqcAKDGr7PsYEMs8EjQkiYFaTDlFCQm/WzTtBl/h95WS4CO\ndJd86E3KwHEWKyEEaurqiIsiLMs47r7h5poahBSgbJAF05U85CuDwNhusTbd\naK5/VCZa9kG0lqNM1Ovf9Y16mQSnAK80NTT+eMrSvSSX2lWpuyz6x8SLbsbY\nJQsl5rDkg4iv756yazfEcKidaZhBrnGjmbV6pCh2IRiqsYMMJgyjrgKzZpQS\nmH/u\r\n=4iP/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDR1dc1vRfIr8c3xpf9VAzhz5ROJbCGpMBmTiLKZTAAQIhAP9TYdCat7MLOazm36AwTsVilpkSvUvfiGcfa405PdfM"}]},"maintainers":[{"email":"canacb1@gmail.com","name":"benjamincanac"},{"email":"benjamindaniel902@gmail.com","name":"benjd90"},{"email":"cyril.ballesta@neo9.fr","name":"cballesta"},{"email":"clement.petit@neo9.fr","name":"cpetit"},{"email":"gdv@neo9.fr","name":"mrskyce"},{"email":"victor.boissiere@neo9.fr","name":"victorboissiere"}],"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_3.0.0-rc.1_1586195776373_0.4346020009602174"},"_hasShrinkwrap":false},"3.0.0-rc.2":{"name":"@neo9/n9-node-log","version":"3.0.0-rc.2","description":"Logging node module based on Winston","keywords":["node log","winston","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"tslint --project tsconfig.json --format verbose '{src,test}/**/*.ts'","lint:apply":"npm run format && tslint --fix --project tsconfig.json '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=10.0.0"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.5"},"devDependencies":{"@ava/typescript":"^1.1.1","@commitlint/cli":"^8.3.5","@neo9/n9-coding-style":"^1.0.2","@release-it/conventional-changelog":"^1.1.0","@types/debug":"^4.1.5","@types/fs-extra":"^8.1.0","@types/nock":"^11.1.0","@types/node":"^13.11.0","ava":"^3.12.1","codecov":"^3.6.5","conventional-changelog-cli":"^2.0.31","fs-extra":"^9.0.0","husky":"^4.2.3","nock":"^12.0.3","nyc":"^15.0.1","prettier":"^2.0.4","release-it":"^13.5.1","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^2.0.2","ts-node":"^8.8.2","tslint":"^6.1.1","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.8.3","winston-elasticsearch":"0.5.9"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Winston.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 8.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.verbose('This is a verbose message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n    at Object.<anonymous> (/home/schopin/Neo9/node-ts-skeleton/src/index.ts:16:28)\n    at Module._compile (module.js:571:32)\n    at ...\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test durationMs=1000\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `verbose`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\n## Transports\n\nDefine the transporter(s) you want to use to store your logs, notice that you can combine them.\n\n### `console`\n\nWill output the logs into `process.stdout` and `process.stderr`.\n\n- Type: `Boolean`\n- Default: `true`\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\tconsole: false, // Don't output the logs into the console\n});\n```\n\n### `files`\n\nWill write the log output into specified file(s).\n\n- Type: `Array`\n- Default: `[]`\n- Properties:\n  - `level`: Level of messages to write into the file (default: `'info'`)\n  - `filename`: Path of the logfile\n  - `maxsize`: Max sizes in bytes of the logfile\n  - `maxFiles`: Limit the number of files created\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\tfiles: [\n\t\t{\n\t\t\tlevel: 'info',\n\t\t\tfilename: '/tmp/info-log.log',\n\t\t},\n\t],\n});\n```\n\n### `http`\n\n- Type: `Array`\n- Default: `[]`\n- Properties:\n  - `host`: (Default: `'localhost'`) Remote host of the HTTP logging endpoint\n  - `port`: (Default: `80` or `443`) Remote port of the HTTP logging endpoint\n  - `path`: (Default: `'/'`) Remote URI of the HTTP logging endpoint\n  - `auth`: (Default: None) An object representing the `username` and `password` for HTTP Basic Auth\n  - `ssl`: (Default: `false`) Value indicating if we should us HTTPS\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\thttp: [\n\t\t{\n\t\t\thost: 'my-logs.io',\n\t\t\tpath: '/save',\n\t\t\tssl: true,\n\t\t},\n\t],\n});\n```\n\n### `transports`\n\nUseful for adding custom transports into `n9-node-log`:\n\n- Type: `Array`\n- Default: `[]`\n\nExample:\n\n```ts\nimport * as WinstonElasticSearch from 'winston-elasticsearch';\n\nconst log = n9Log('test', {\n\tconsole: false,\n\ttransports: [\n\t\tnew WinstonElasticSearch({\n\t\t\tindex: 'n9-log',\n\t\t\tlevel: 'info',\n\t\t\tmappingTemplate: require('winston-elasticsearch/index-template-mapping.json'),\n\t\t\tflushInterval: 200,\n\t\t}),\n\t],\n});\n```\n","readmeFilename":"README.md","gitHead":"032aa889bf03e02db847096d36ecd1a7a673422f","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@3.0.0-rc.2","_nodeVersion":"14.12.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-iwAWRYROVFJhQBwBtq/nStwGsYNPuiMxHHEhu0914jqDMcoT+4czqRoOsF6N9kgQ7Noccq6GmKtaw6Q/Gubobg==","shasum":"4239ff478d2efab25510f57f86406adc03a6fdbf","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-3.0.0-rc.2.tgz","fileCount":7,"unpackedSize":61718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfayaqCRA9TVsSAnZWagAARY8QAI39hypLuo9tInJ+KWqT\nVACjNUfU/zGIbkBS3yFqk7gauharTvY1Btwgn769yPmsuAcAtdUbrq+zpwzh\nc1LOWEQV7JC2UUJwLzUYziuw++9bCVMRXnRVcJQ/dRZ/4PgMAf2bjgKPy9/6\nmmvbUjtJUGRsTxnIJzgpyHTIck+Kw0suEdAR6gJyLxzBkOiPBSo1XDFdDmEt\nisQerQ99Fz4G4Kye3NoTPEVub6MrunOMJ3CdoAeZus71EHy7UyQ7xZkP2u6e\nQaaz5ov1/lTOJ4zMF8/1pJNVf1xjslDXCkbmxEn3xM+DX9KNt5Q59K5Bn0mc\nu4aS/pDwSvQ6xLMEMtpwAIWnwQ8rKKA6/o2BxTAMtZ89lAeRIX/zR8kKIQll\nZhmn9NIyMWikdJQJCz1FIGAIeab55G8DvlyRX8iQScGnrNfUXgqBleBPsYbR\nvQx2bosVcFbXuC5+vJohAQXm8DKxJXXK0DSXWz8KD4BQ3IqPzm2G4uptycLl\n2dqCas+6aaK1pyQei/ADw+8BqPbMnIqmz4QmiTvNEIZ6I7EfoAQnodmqc4CH\nOBmtD9bfawErdXLoGiJLTE1qtyJCyt+N3SYJHInKsGroV0ZesVHncmjfZGLP\niid2+T/wgex0j/1BuCXdhi7XXSkybcACPrwssc/J81ECu3iYFKa3m+KBlJVx\nfR9l\r\n=z+Pd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG4qc8svjPlVcasA/t0BVEl1Jl8dvh0ecX9pQm9o0LptAiEArgevAUH6QQHqKOn4myPJ/wthcLtZxAfmotGLCU8J4vI="}]},"maintainers":[{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"}],"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_3.0.0-rc.2_1600857769716_0.04764260847937796"},"_hasShrinkwrap":false},"3.0.0-rc.3":{"name":"@neo9/n9-node-log","version":"3.0.0-rc.3","description":"Logging node module based on Winston","keywords":["node log","winston","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"tslint --project tsconfig.json --format verbose '{src,test}/**/*.ts'","lint:apply":"npm run format && tslint --fix --project tsconfig.json '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=10.0.0"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.5"},"devDependencies":{"@ava/typescript":"^1.1.1","@commitlint/cli":"^8.3.5","@neo9/n9-coding-style":"^1.0.2","@release-it/conventional-changelog":"^1.1.0","@types/debug":"^4.1.5","@types/fs-extra":"^8.1.0","@types/nock":"^11.1.0","@types/node":"^13.11.0","ava":"^3.12.1","codecov":"^3.6.5","conventional-changelog-cli":"^2.0.31","fs-extra":"^9.0.0","husky":"^4.2.3","nock":"^12.0.3","nyc":"^15.0.1","prettier":"^2.0.4","release-it":"^14.0.3","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^2.0.2","ts-node":"^8.8.2","tslint":"^6.1.1","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^3.8.3","winston-elasticsearch":"0.5.9"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Winston.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 8.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.verbose('This is a verbose message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n    at Object.<anonymous> (/home/schopin/Neo9/node-ts-skeleton/src/index.ts:16:28)\n    at Module._compile (module.js:571:32)\n    at ...\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test durationMs=1000\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `verbose`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\n## Transports\n\nDefine the transporter(s) you want to use to store your logs, notice that you can combine them.\n\n### `console`\n\nWill output the logs into `process.stdout` and `process.stderr`.\n\n- Type: `Boolean`\n- Default: `true`\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\tconsole: false, // Don't output the logs into the console\n});\n```\n\n### `files`\n\nWill write the log output into specified file(s).\n\n- Type: `Array`\n- Default: `[]`\n- Properties:\n  - `level`: Level of messages to write into the file (default: `'info'`)\n  - `filename`: Path of the logfile\n  - `maxsize`: Max sizes in bytes of the logfile\n  - `maxFiles`: Limit the number of files created\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\tfiles: [\n\t\t{\n\t\t\tlevel: 'info',\n\t\t\tfilename: '/tmp/info-log.log',\n\t\t},\n\t],\n});\n```\n\n### `http`\n\n- Type: `Array`\n- Default: `[]`\n- Properties:\n  - `host`: (Default: `'localhost'`) Remote host of the HTTP logging endpoint\n  - `port`: (Default: `80` or `443`) Remote port of the HTTP logging endpoint\n  - `path`: (Default: `'/'`) Remote URI of the HTTP logging endpoint\n  - `auth`: (Default: None) An object representing the `username` and `password` for HTTP Basic Auth\n  - `ssl`: (Default: `false`) Value indicating if we should us HTTPS\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\thttp: [\n\t\t{\n\t\t\thost: 'my-logs.io',\n\t\t\tpath: '/save',\n\t\t\tssl: true,\n\t\t},\n\t],\n});\n```\n\n### `transports`\n\nUseful for adding custom transports into `n9-node-log`:\n\n- Type: `Array`\n- Default: `[]`\n\nExample:\n\n```ts\nimport * as WinstonElasticSearch from 'winston-elasticsearch';\n\nconst log = n9Log('test', {\n\tconsole: false,\n\ttransports: [\n\t\tnew WinstonElasticSearch({\n\t\t\tindex: 'n9-log',\n\t\t\tlevel: 'info',\n\t\t\tmappingTemplate: require('winston-elasticsearch/index-template-mapping.json'),\n\t\t\tflushInterval: 200,\n\t\t}),\n\t],\n});\n```\n","readmeFilename":"README.md","gitHead":"747c931daaa152d0e04bdea2d7c198055874f1ed","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@3.0.0-rc.3","_nodeVersion":"14.12.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-gv7mJkid53htyG2TiETjlqnnGhi1sdGuCAZdpHyl8MS8kFhtXE3zKoypKX032UteP7Rn5iNlzZDNFk0bJ/WBiA==","shasum":"443f8fe71e7a1587f9b14917a55ec1e6a68914c9","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-3.0.0-rc.3.tgz","fileCount":7,"unpackedSize":61967,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfayfdCRA9TVsSAnZWagAAb8cP/0OubaUneJ8uN/KEMaAa\nq6wwqmg2FpepqA/AeymugFZtAkRZb01eiljn34W71x/aHVyRGzMU4Vqdx4AT\n+7+JujtDy89csETTATW7i1GAPCGhTEGv1Vp+nezZ20O/4YJVTDV0/3IEdPz5\neUb88qgsSO1dI3rlHF91wTyBwJZ4bfmfd+FxUWHMkIlo7uDMq79MbhvbBxak\nFIDyIRCKWO8w1nK7I+T1ao1HJ5+IMKcVKpPZoZKb2OdTEfHImrWkpBFjDp+u\n3uTyjUH0X2ehXgCumOqr/0FS7hsJnJauIlj3eZxLwW5tNDRg4XI70PwjfQ6K\nrzWdtVfmORfqnMIQ7pXZ09z7R2fgU47Lnze3bMb/FQtDHBcnF/BTF6I3EC/z\nNiuK+/3j8XwoKjZ145jit50FTM2FScC2ckaIdtTzfAaACJkO0QyMAnZmQRbd\n+jidfOixwfkOm2F3tgr19PUMtw7J0FJrbyyrjWNrnt0bdIYnu05MxtD24U3/\nsUjfjJk+usDL4gRjizlwqjSypUZqCaA+HiHr2yyjeca3H9FaosMMtEYaTMHF\nzIkGcuei20dcAQDI36iRABuxcacbnqRlPpWJblrG4Owz6s54bN2XslP4X/T/\nvmQeZyW14Q5hI0/8LgtFfFUQrDjTgXNSy2dImnmwy0kUEDPsYED+JbxA5p1p\nL2Wh\r\n=Tv3z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGk7UlhXERrOg2AdtoUaAQ9QcAibEK6DCf4dGU9Ovv1gIhALIW32zlwrD35Qt6UgcCTaCyAfw44xCKSYbOkzHS6qbm"}]},"maintainers":[{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"}],"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_3.0.0-rc.3_1600858076719_0.46800233633210087"},"_hasShrinkwrap":false},"3.0.0-rc.4":{"name":"@neo9/n9-node-log","version":"3.0.0-rc.4","description":"Logging node module based on Winston","keywords":["node log","winston","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"tslint --project tsconfig.json --format verbose '{src,test}/**/*.ts'","lint:apply":"npm run format && tslint --fix --project tsconfig.json '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=10.0.0"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.5"},"devDependencies":{"@ava/typescript":"^1.1.1","@commitlint/cli":"^11.0.0","@neo9/n9-coding-style":"^1.1.1","@release-it/conventional-changelog":"^2.0.0","@types/debug":"^4.1.5","@types/fs-extra":"^9.0.1","@types/nock":"^11.1.0","@types/node":"^14.11.2","ava":"^3.12.1","codecov":"^3.7.2","conventional-changelog-cli":"^2.1.0","fs-extra":"^9.0.1","husky":"^4.3.0","nock":"^13.0.4","nyc":"^15.1.0","prettier":"^2.1.2","release-it":"^14.0.3","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^3.0.2","ts-node":"^9.0.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.3","winston-elasticsearch":"0.5.9"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Winston.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 8.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.verbose('This is a verbose message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n    at Object.<anonymous> (/home/schopin/Neo9/node-ts-skeleton/src/index.ts:16:28)\n    at Module._compile (module.js:571:32)\n    at ...\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test durationMs=1000\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `verbose`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\n## Transports\n\nDefine the transporter(s) you want to use to store your logs, notice that you can combine them.\n\n### `console`\n\nWill output the logs into `process.stdout` and `process.stderr`.\n\n- Type: `Boolean`\n- Default: `true`\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\tconsole: false, // Don't output the logs into the console\n});\n```\n\n### `files`\n\nWill write the log output into specified file(s).\n\n- Type: `Array`\n- Default: `[]`\n- Properties:\n  - `level`: Level of messages to write into the file (default: `'info'`)\n  - `filename`: Path of the logfile\n  - `maxsize`: Max sizes in bytes of the logfile\n  - `maxFiles`: Limit the number of files created\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\tfiles: [\n\t\t{\n\t\t\tlevel: 'info',\n\t\t\tfilename: '/tmp/info-log.log',\n\t\t},\n\t],\n});\n```\n\n### `http`\n\n- Type: `Array`\n- Default: `[]`\n- Properties:\n  - `host`: (Default: `'localhost'`) Remote host of the HTTP logging endpoint\n  - `port`: (Default: `80` or `443`) Remote port of the HTTP logging endpoint\n  - `path`: (Default: `'/'`) Remote URI of the HTTP logging endpoint\n  - `auth`: (Default: None) An object representing the `username` and `password` for HTTP Basic Auth\n  - `ssl`: (Default: `false`) Value indicating if we should us HTTPS\n\nExample:\n\n```ts\nconst log = n9Log('my-app-name', {\n\thttp: [\n\t\t{\n\t\t\thost: 'my-logs.io',\n\t\t\tpath: '/save',\n\t\t\tssl: true,\n\t\t},\n\t],\n});\n```\n\n### `transports`\n\nUseful for adding custom transports into `n9-node-log`:\n\n- Type: `Array`\n- Default: `[]`\n\nExample:\n\n```ts\nimport * as WinstonElasticSearch from 'winston-elasticsearch';\n\nconst log = n9Log('test', {\n\tconsole: false,\n\ttransports: [\n\t\tnew WinstonElasticSearch({\n\t\t\tindex: 'n9-log',\n\t\t\tlevel: 'info',\n\t\t\tmappingTemplate: require('winston-elasticsearch/index-template-mapping.json'),\n\t\t\tflushInterval: 200,\n\t\t}),\n\t],\n});\n```\n","readmeFilename":"README.md","gitHead":"73ae8da7e9824eae5b4557abb1d4b5abbc1d5d60","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@3.0.0-rc.4","_nodeVersion":"14.12.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-yfLHihtPeLtx6eIJ8T2gQun7hg/4VQLuCJWqbv70UsbqGtOEXVl0z/EBcGKf4GO0CXO9m5CcPiifb2/wJW0fgQ==","shasum":"bd3a706d227908de29943796ec2b4338ab77d0d5","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-3.0.0-rc.4.tgz","fileCount":7,"unpackedSize":62241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfayvTCRA9TVsSAnZWagAAwfoP/ivUiwSElCGc4H8DwGpP\n11hx3zRiJGKsVI7IwYDVffvYYOMcBXouo3jU7XMsbDKJJ2ipSkAUicPc7JWC\np8p0q9Y01B0ymJDYdH2uoxPmrY0HNEDuyzPYhZNmvVF7JqW9PDLYMvpSoijs\nYLz89wlBqaGllxkvYA+8M+ntp70iOfVQ6jDGr4uNnegM/GeODUHxw4Br4Did\nxUWMGJnz+b0gRN3j9wvTjyugKlSwYgVQ2E8gQ910nmeMKZ6DWx36sfpbQeIY\nKt2NkDxpkYd0Is/+LwRRPdSLLd7KveaAokYoicmwOpYt1/xxXzRwjmHW1C7m\nQRpA80yP7Tqd2tN79HGg9ZkF6ekPo5GOQAFWBG2SfI0NBeWPjwPCvufKo0+Y\ny4k/FGi42VjCQElLX7KVC3M0ZTV3t2rECcfA/PgKutKu8zOI6SR878xVBGqR\nxoN0n0et9Pv2KlWcaOJH/sctfqBCCLefp0SW3AiGgxXJBIFBXK6sAXUMFpF5\njII6p2UfBy14C+UvwOauUPtvFZspkwCAtVEN3JcLKRF94cgdfA/Yz3oY2pNh\nRJfsLF75KgqXA801/W8Pik0EhZ/xZy0wlWmcHh1n8q3bWXPBkIDxOfYIniNe\n5f74uXo3poMhw6BM2SoqLBtbEx+QMUaLP3eUASmbgrH6RP4foq3cOM7KHpKt\nvaCP\r\n=FKdU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH6YrOqAqBlS2KA38BkZtXg8GySZ2UhDIO4c5zce9pSiAiAe0GxaP9RK5zCfkhf8uSuXE5RNqoeiLHkubQSOO856pA=="}]},"maintainers":[{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"}],"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_3.0.0-rc.4_1600859091159_0.1485508176540693"},"_hasShrinkwrap":false},"3.0.0":{"name":"@neo9/n9-node-log","version":"3.0.0","description":"Logging node module based on Winston","keywords":["node log","winston","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"tslint --project tsconfig.json --format verbose '{src,test}/**/*.ts'","lint:apply":"npm run format && tslint --fix --project tsconfig.json '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=10.0.0"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.5"},"devDependencies":{"@ava/typescript":"^1.1.1","@commitlint/cli":"^11.0.0","@neo9/n9-coding-style":"^1.1.1","@release-it/conventional-changelog":"^2.0.0","@types/debug":"^4.1.5","@types/fs-extra":"^9.0.1","@types/nock":"^11.1.0","@types/node":"^14.11.2","ava":"^3.12.1","codecov":"^3.7.2","conventional-changelog-cli":"^2.1.0","fs-extra":"^9.0.1","husky":"^4.3.0","nock":"^13.0.4","nyc":"^15.1.0","prettier":"^2.1.2","release-it":"^14.0.3","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^3.0.2","ts-node":"^9.0.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.3","winston-elasticsearch":"0.5.9"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"gitHead":"81aa0f1143126f3abe6d370c67bd081186ec14b6","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@3.0.0","_nodeVersion":"14.12.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-RLTDyeBkFp33rsZmKMgCyMWabJWsatA5hjgla0GMPYfBQWtqL+kQ3ulBiriWbhNI0VlRGjlHtiOgOn4TqbtCxw==","shasum":"0dbb8711206a656e0030de69b770324da602570f","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-3.0.0.tgz","fileCount":7,"unpackedSize":62324,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaz65CRA9TVsSAnZWagAAXT4P/jW9x6/xoVR1YrEhFTAW\nfPjY5iVEom7ZerXxRBo0B4ThyLyWmfXk+yrSAs0Y9mI8NrCaDnx7fTxjgxdH\nWSN5xRC2/yhz5E7IEnOWnUdiWh+jMuFKkqSqUIqMCNBdq1WQ8VBVVfU8xZU7\n6R4goDZ+RiuMBV+63wXjTu+IiGHdRcMiJbFwM6aXEuNIVh6uKa1PSvxV1kvj\njOVW4qJYOUoytUIcSi9x5TQmVX6WkaS/bUyUnRiM490m6it0B7jHcRdL7Rqs\n2L5i4T15SKSzUPwDzABApVe3Yg/Ovb2Z+k/aWfGX3D7tSIgZa/f30zF13FuY\n5UTxVpPR9t1lZNp0Y9NZ7pnCiZaKShV4nw25z03vdvnrd4NMiKVmbjPgTd8U\nFHNYoKAiS6JDEF2kO9csw9zj/Fqk8tN0ZKN8pQrLpWYGoxQgg9SF2q4Ms1sX\nFdSR/CvsEwmKRonxNGeeeNpsEf0nJs4LS516HHfwL2am1zL1iul2+/4gzjby\nCjFP0XxmVGhpavFCnGfZSgt1AaVL+8JGxXYQZ9M7CNAZRBps3nRqh7NjOWhf\nLXdGw3qsPmHpyvdnSAQmrICx1vVliWYZnkG0IRjmGRSVCeswfn+8czNHU7Ea\nmGsoTMgbwluz4CK830JZinrca368mO4A3Nba+8bRHcdM4aA4gk+ub9vUmmLm\ns0H8\r\n=42To\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMvAfZ8x5FlAWjToIE5BdfD49tCnYw7HbZ73sLgbWflQIhAL8p/tWOzGcTkpLjatv/Sks+sGvTlM4U8Jirqeigt7q5"}]},"maintainers":[{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"}],"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_3.0.0_1600863928984_0.09893872269168447"},"_hasShrinkwrap":false},"3.1.0":{"name":"@neo9/n9-node-log","version":"3.1.0","description":"Logging node module based on Winston","keywords":["node log","winston","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"tslint --project tsconfig.json --format verbose '{src,test}/**/*.ts'","lint:apply":"npm run format && tslint --fix --project tsconfig.json '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=10.0.0"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.5"},"devDependencies":{"@ava/typescript":"^1.1.1","@commitlint/cli":"^11.0.0","@neo9/n9-coding-style":"^1.1.1","@release-it/conventional-changelog":"^2.0.0","@types/debug":"^4.1.5","@types/fs-extra":"^9.0.1","@types/nock":"^11.1.0","@types/node":"^14.11.2","ava":"^3.12.1","codecov":"^3.7.2","conventional-changelog-cli":"^2.1.0","fs-extra":"^9.0.1","husky":"^4.3.0","nock":"^13.0.4","nyc":"^15.1.0","prettier":"^2.1.2","release-it":"^14.0.3","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^3.0.2","ts-node":"^9.0.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.3","winston-elasticsearch":"0.5.9"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"gitHead":"080da66fdaeb67c81d63aafaf7944145fef80ae3","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@3.1.0","_nodeVersion":"14.12.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-0UVltxjj9J6DO4Q0YrC8RweMc2/ZM+91CWFpy1WlftJDwYKvqXpKNCkHxXyV8b21FKPKQNd5QCHZZc2aZTTdiA==","shasum":"f1167a44bd3dcc24fac08420470437415665d335","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-3.1.0.tgz","fileCount":7,"unpackedSize":65327,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftmWWCRA9TVsSAnZWagAAz3cQAIowGZJDcGQ3agsI3mWM\nCo4Em9no5ptVwH/UVGrY3bGD298fSU+z5Uukm+doQyyW37CnzNenmoJwYGjj\nfGV3eiqsyA3Ie65JrpzDeNmxi5NSPaOobC3HOw0mcGPQGN21K37tJDBlmj9F\ndv5diHPfTDKBECWQMCf8AV/TCMZ86ljNmey9QX3ST3S3YxlY1LkZsx0iIYYg\nk8+4G5gM4wm7KZ1zQ5NcOeqmWA3dqstJj6EaGURBoCiGvsCZWXODFBPSxPqH\nL9VpU1DEXkFwxJyomE76jy3XcsRC+aqIDqa9M0siRYNtQ8fdUj2Pu55huGrL\n7VGD720gWBC8A/fE/UzRBV99LDCOReWasFouNU17Z51/5wkwXi5uQ+MbdwH1\nDx8ByrsYluN7EWk8WEb7QhhwvAjyJc20pT68It1NCjYwzgogLXGaOXzfX1K2\n7HXTPIz2JreM50CcDE8e/MkI4dq0Wm3BlKUX04IOl35dM6gvoSQdb/7PCsYh\nZ4P5PhWiIiPx5Gax2f1PqspeaXTA9N8lmA1SnKuE2nkNoX3rNIwCk0arLyTF\ngW+kSeyQYFjWypN3LBhQepgQ9WsExc3OBpt/8p9sW82r8AHpms910Rvo7V8+\nWKwrPPxRu3qwA7UQZoLqZfqE1WJMFjJJy6K4GlX0HSHrXONbN34K/ML+CsZ3\nQcSS\r\n=XXNt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkemhFn+Txd/+TRnwbQCRKIuXLvnh5DweHhaL/WNN49gIhAIMVOXO0fyIYSJzKvJjMuXCF5HIhlAwrIAJw0YN3PliU"}]},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_3.1.0_1605789078155_0.169621155974782"},"_hasShrinkwrap":false},"3.1.1":{"name":"@neo9/n9-node-log","version":"3.1.1","description":"Logging node module based on Winston","keywords":["node log","winston","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"tslint --project tsconfig.json --format verbose '{src,test}/**/*.ts'","lint:apply":"npm run format && tslint --fix --project tsconfig.json '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=10.0.0"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.5"},"devDependencies":{"@ava/typescript":"^1.1.1","@commitlint/cli":"^11.0.0","@neo9/n9-coding-style":"^1.1.1","@release-it/conventional-changelog":"^2.0.0","@types/debug":"^4.1.5","@types/fs-extra":"^9.0.1","@types/nock":"^11.1.0","@types/node":"^14.11.2","ava":"^3.12.1","codecov":"^3.7.2","conventional-changelog-cli":"^2.1.0","fs-extra":"^9.0.1","husky":"^4.3.0","nock":"^13.0.4","nyc":"^15.1.0","prettier":"^2.1.2","release-it":"^14.0.3","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^3.0.2","ts-node":"^9.0.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.0.3","winston-elasticsearch":"0.5.9"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"gitHead":"c85b9bb421ba1eb514e58611c09d7ce347a71fda","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@3.1.1","_nodeVersion":"14.12.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-0tSANb2+4zO0CS6rni3HjhDDpRRHyRg0HTDjCK88is3YaBEB9WlfKTvzKfYTnXn2kLl5a+78TpCov4yMDIEhvg==","shasum":"fa7abdec5583f50e5be790a92d2e13bc0005f1d9","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-3.1.1.tgz","fileCount":7,"unpackedSize":65494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftmmPCRA9TVsSAnZWagAAhwYP/juLYn/RIMPo4x64TFd3\nGwjC4szI0Qy1bfqTIIC02UV1XySMOUlHCXjji9zX6QbtT7MXMBcnF/Fla1fw\nhJ7239HAwOiDOEYsD5AmpsZZ6YamZNRj7kTiqXxmFT3vlrrjGs0IoAA5d0IZ\ntT9RzBlU8eX0WxdtrGiaVByhTAs1lr53egUlk9RThyEOHv5VVIGAJazaIt/P\ndDn1ilTTzBYwtMSLDCWBmkV7AX5zORyh0h6Lz1VofogQauzZ0FUEZ5YKr5Sy\nH/x1rL0nxx1A+XFPbKrhPaFp9Pc/bpXfTrfZu04OlzFV3hc2jbOVxfWOV5A2\nyZ8zgN/doGF7eqhXCr3V8+Xhz1EXIp60rYBTpY/zG2kaYUtBRcnqlOVTWFWd\nNd52IB62seaXfw6k7owtDAQzjVg+bG4nGI4o9AMOZBNZ7+ZxgxEbHnauABZD\nl6dwyBxnPbLcs0ILchkGbKG+CgazBqxaIP8Ps3v9xL07ToJPevQg4ZDQdl2K\ntATi9m1RxvmoGVuSJBRuxNPgG+afYkn8LwkouL+EYEAAOS4Hea2fBXvBDstA\nfuwy1BALRhYDhZK/QRSVthcQ9l+Noig8SoJbolqpqtjxImK+nTLZGh4rCt/9\nK33zwto9CdLy1tHikTPHNDSbYjntXEceNdZH3VTMSHJfeCUEZaBuyCm93IMb\nZxBy\r\n=C8A1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBtMPBZRZs5+uaBC9u0Mc/6YEoRN1RglJXCyfc5nwnZBAiEA/5ibdpFAOMMqNWv22SqXLgrDMGnoltqj/eM2aduy+rI="}]},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_3.1.1_1605790095147_0.34364222233493913"},"_hasShrinkwrap":false},"3.2.0":{"name":"@neo9/n9-node-log","version":"3.2.0","description":"Logging node module based on Winston","keywords":["node log","winston","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"tslint --project tsconfig.json --format verbose '{src,test}/**/*.ts'","lint:apply":"npm run format && tslint --fix --project tsconfig.json '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=12.0.0"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.5"},"devDependencies":{"@ava/typescript":"^1.1.1","@commitlint/cli":"^12.1.4","@neo9/n9-coding-style":"^2.0.0","@release-it/conventional-changelog":"^2.0.1","@types/debug":"^4.1.5","@types/fs-extra":"^9.0.11","@types/nock":"^11.1.0","@types/node":"^15.3.0","ava":"^3.15.0","codecov":"^3.8.2","conventional-changelog-cli":"^2.1.1","fs-extra":"^10.0.0","husky":"^4.3.0","nock":"^13.0.11","nyc":"^15.1.0","prettier":"^2.3.0","release-it":"^14.6.2","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^3.0.2","ts-node":"^9.1.1","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.2.4","winston-elasticsearch":"0.5.9"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"gitHead":"a6ae8f3660700e5443036943f0a947749a9f6351","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@3.2.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-ryQBfmkI8XlD3FWVmISsGbB0fWfODLgOFqzb3LjoLgf4AOHuogA0D+EreUpSGMHg2+EOef8s3TxQetkchG/NCA==","shasum":"33655d887ddd436b5d83c86b417f19a4762495c5","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-3.2.0.tgz","fileCount":7,"unpackedSize":65912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgo93pCRA9TVsSAnZWagAALPAP/1bDtqCY5ZqBy9zNw+n0\niiMuPsJRIoDY3tQ5wVdVpRPu2jwXsSEaSuwuqzykTeetP01KZQVr99ccgDiX\nSRvfumPdfgYh16bDK3RJ0i3Qf5dTNAQDz77DjHqGLozdow4RUnBxUsaJ01l/\nXciGkLJP+Cm861Y67Eo+KwHs11YE6SAS5JZDivASMYdc0wxnn3QBEULiS//p\nROTi1pAseHTZvuftGBg8T3R8yDI0OFAxb6oOm595Ef7dAPqvKKEeub2KCuVA\ns0GtxZUXj+UIU+9uqgmneymCmGWgFy8ghDBiWjsnoBxKSfPr3MvxrbxGGiwL\nv20DeDDahBgnhqcEW/HUXDLOV7UIs3zQGKOeNCwxvvy+bbPK3SM3/74lMLlL\nYPQcCqEVjfmtF6gXtFWeAuvgfoCpnhv+51tym9SnTTTa5HtCM0rpm0gPhq2J\n722ZguUA21yCRCDJ+dp/irXOsaCsovbMdNkrGbIp9ThYNrPebjzPoMkbfrxz\nBSKaulbJnh/3vgmj0QFcK2Wa7tjn1WAu0Durv4whjAW767T118K+3FHne010\n9m310y2koG7fxRrfQVBcuLXwNNmfaB/CgPBxV8FdIwA04Nrqml/+QhcZCABp\nImN679RJDlF/FZXMHeugayhx3dNqdcU13XM34LOobcLsXmKGutBVS5eKHWZb\nFxzL\r\n=fjqP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBbTf93jE4BFfU/lpZAaIxRZDaPBWkUOyUpLyWVt/ERwIgOjXshPvvqdeoxa7zWxaL2DQBRTutoRCFkLJx90SJHSk="}]},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_3.2.0_1621351913161_0.9835823836680064"},"_hasShrinkwrap":false},"3.2.1":{"name":"@neo9/n9-node-log","version":"3.2.1","description":"Logging node module based on Winston","keywords":["node log","winston","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && npx eslint --fix '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=12.0.0"},"dependencies":{"@types/winston":"^2.3.6","winston":"^2.4.5"},"devDependencies":{"@ava/typescript":"^3.0.1","@commitlint/cli":"^16.2.3","@neo9/n9-coding-style":"^3.0.1","@release-it/conventional-changelog":"^4.3.0","@types/debug":"^4.1.7","@types/fs-extra":"^9.0.13","@types/nock":"^11.1.0","@types/node":"^17.0.27","ava":"^4.2.0","codecov":"^3.8.3","conventional-changelog-cli":"^2.2.2","fs-extra":"^10.1.0","husky":"^4.3.0","nock":"^13.2.4","nyc":"^15.1.0","prettier":"^2.6.2","release-it":"^14.14.2","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^3.0.3","ts-node":"^10.7.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.6.3","winston-elasticsearch":"0.5.9"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"gitHead":"41dac39ae6b93b68627aebd6bfe487af3f8b69a5","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@3.2.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-p2ae4T+1DylB0MCUW7QuuSSp2K5o3H0mxItYB/k//J3TBcmVU/taX95B1l4dPqs9IQpBrzTqGzqDkT19urdbeA==","shasum":"4254eadc92cf1cf8100eac8a1d43c785ea27a6fc","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-3.2.1.tgz","fileCount":6,"unpackedSize":54953,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCL/OqdotfgFkECCdgv2BU3nFNwxMDNf/WCF8Mc9m4cOAIhAP+jdzvPmanrbKaZV0Mth5oUiUf34nPhwkfevJbjGDtc"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZscAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr01w//Y2F6fFLMR6Aig/PgDBcdAUJHwGHj45SopEQPVA7tfFVgS0q3\r\ntXbZUPBOqdaF+qyv7OkEfGofgHgaE1yRrLbyCW1darm87cLs2xzkyLFwwHxB\r\nNqi1NWrJG+gLSzcAX0B/lzjUJkxs59PpciF2mn5+cTypmoJ8h4GOlBA9s4yU\r\neMJj/08eC6qXu87Hz56UMv8nNfXEP8u8frcqVgc9YzoR37DsOB2wF7NyIUjQ\r\nDtNKEMSSrO9OkiC497pfE7S7o8B6d7Is1hqS8hHjY9HjO144ftdITbN2s64c\r\nzCcOb16ypKglPiK0GAklkeWO0S6qObC+0Ut7AHRk3DproKuQJFXFc0ZqTpkc\r\nA5n4J9ZuZtSEiMcLYvvfycLBN9lEr11RpTtmnLsHjQaJPoxZGBfdr1c1Jbp0\r\nTBkditviUTd8tq2WVoJQLxQAk9Nm+NHpgMqVodtObO+r9p0Vfe0w4YkDoGnk\r\nZt2mg7XJTUzwVzlivfAJXHnmcQ+z5VBgGClM8h38Gta1npG4E5G4KnI/vVDx\r\nVJkn8npBmDbtIbQNObXkpvKpTTjSXKVQz/s/32DhHJXuZycmJS5Z5nxKZXuq\r\nORZbdEigUM0zozlYAWEGY0bv4EhMi/A7++/jcaDRL//IVkt/N1QJp45V73Pp\r\n4npvkJB9qoYpg6An/G8TPqb2D5Z5JjOhPSc=\r\n=lQ5n\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_3.2.1_1650902784089_0.3118171778798833"},"_hasShrinkwrap":false},"4.0.0-rc.0":{"name":"@neo9/n9-node-log","version":"4.0.0-rc.0","description":"Logging node module based on Pino","keywords":["node log","pino","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && npx eslint --fix '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial --timeout=2m && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=12.0.0"},"dependencies":{"@types/std-mocks":"^1.0.1","pino":"^7.11.0"},"devDependencies":{"@ava/typescript":"^3.0.1","@commitlint/cli":"^16.2.3","@neo9/n9-coding-style":"^3.0.1","@release-it/conventional-changelog":"^4.3.0","@types/debug":"^4.1.7","@types/fs-extra":"^9.0.13","@types/nock":"^11.1.0","@types/node":"^17.0.27","ava":"^4.2.0","codecov":"^3.8.3","conventional-changelog-cli":"^2.2.2","fs-extra":"^10.1.0","husky":"^4.3.8","nock":"^13.2.4","nyc":"^15.1.0","pino-pretty":"^7.6.1","prettier":"^2.6.2","release-it":"^14.14.2","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^3.0.3","ts-node":"^10.7.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.6.3"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Pino.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 10.0.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.trace('This is a trace message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n     err: {\n      \"type\": \"Error\",\n      \"message\": \"something-went-wrong\",\n      \"stack\":\n          Error: something-went-wrong\n              at /home/bdaniel/projects/neo9/n9-libs/n9-node-log/test/index.ts:110:29\n    }\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test {\"durationMs\":1000}\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `trace`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\nFor performance matter, you can check if you need to compute your log data :\n\n```js\nif (log.isLevelEnabled('debug')) {\n\tlog.debug('My debug log', { complexDataAsOneField: JSON.stringify(data) });\n}\n```\n\n# Breaking changes from V3 to V4\n\n- Log level verbose renamed to log level trace\n- JSON Format is enabled by default, it wasn't before\n- Remove transports and filters features\n","readmeFilename":"README.md","gitHead":"425e1c7693bb7560ed6b0e724bb5e339586c908a","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@4.0.0-rc.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-ObyIYrCbWrC8q+hi+9un9wHDrTAnjqlOXMWW6NIMx/Et+3PjnSJ/1OK2g4qL2NuMd+n8ouv2HxyE8eC6cFiDcw==","shasum":"9b051c0554d8c1e5ceb3927737c37ae46c2b6b74","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-4.0.0-rc.0.tgz","fileCount":9,"unpackedSize":54964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDg2ZYEtMP7YPsuASMUStKbvS3oF5Z5xNRul9eJ3oBEEAiAV/x2k3n+bDSODvRDUhbGYEc0NyMLO4O5y1806hVkEIQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaByrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmorDQ//c608+n3mUvTXLKGVfTDiMGkfULypRyDInIAa2tPtKimh3tZF\r\nLyZLJQsBOmn+D6INK2Mnfy9Wv+D+U6h3YJwmskrvqXvPPzq3b9B5RzhLroZi\r\nZbo0fESZKnGqWjffdEyNb/uZodpiJNsHvDso3+KWcyeI+NJus0ZAljvDmqy2\r\nrS6CqNastSJ9WqmeYsR+srKYzeJvPRqAcRAdcqsHrKWtco2JvBxx5h1RriTX\r\nVWULUzfjsPdARrASq6aTW9NGfWT4GakmwSvjPDovRxuXb24ZsUFSqqKIoT7p\r\nrLPKaxLGu3gOGA+6AaN7WnTcweD653n9vsUREXj9VPGX12RzvJMNoLhuOL7C\r\nWy8G9ZilMcPIqvOKVj4gvu/J5icgHMQ1K0jgHJsaXREfJIdD6PCfAyQKVfZt\r\nkF4yi3PyJ2R3WbpnQGfkH/zZH5fdwDY/Z6Hk0G7XJfvtl7dXg8YRRgjy6B3Y\r\nA8vYP2/tQSYObMh8Ww7a1Pypm6jru2yKt/TW5ixq8G1Lmi/7aj9QmSr/D0rc\r\neXbIi+qvRePrrKlE1SZv0LiVrp2Y7PrOtoh3NZCE+Bbp23RzgvgaMxehKc4D\r\nZlyADYLI9INbwtLPEwBUuEhU4e0Vd8+nfKf44NEE/2xM5kZuLnjXmWnLAY6k\r\n95qiwPfdwzOqlt3Ao9wOy6EWJsksOdUOjr0=\r\n=QC8T\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_4.0.0-rc.0_1650990251540_0.7210358699744079"},"_hasShrinkwrap":false},"4.0.0-rc.1":{"name":"@neo9/n9-node-log","version":"4.0.0-rc.1","description":"Logging node module based on Pino","keywords":["node log","pino","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && npx eslint --fix '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial --timeout=2m && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=12.0.0"},"dependencies":{"pino":"^7.11.0","pino-pretty":"^7.6.1"},"devDependencies":{"@ava/typescript":"^3.0.1","@commitlint/cli":"^16.2.3","@neo9/n9-coding-style":"^3.0.1","@release-it/conventional-changelog":"^4.3.0","@types/debug":"^4.1.7","@types/fs-extra":"^9.0.13","@types/nock":"^11.1.0","@types/node":"^17.0.27","@types/std-mocks":"^1.0.1","ava":"^4.2.0","codecov":"^3.8.3","conventional-changelog-cli":"^2.2.2","fs-extra":"^10.1.0","husky":"^4.3.8","nock":"^13.2.4","nyc":"^15.1.0","prettier":"^2.6.2","release-it":"^14.14.2","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^3.0.3","ts-node":"^10.7.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.6.3"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Pino.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 10.0.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.trace('This is a trace message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n     err: {\n      \"type\": \"Error\",\n      \"message\": \"something-went-wrong\",\n      \"stack\":\n          Error: something-went-wrong\n              at /home/bdaniel/projects/neo9/n9-libs/n9-node-log/test/index.ts:110:29\n    }\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test {\"durationMs\":1000}\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `trace`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\nFor performance matter, you can check if you need to compute your log data :\n\n```js\nif (log.isLevelEnabled('debug')) {\n\tlog.debug('My debug log', { complexDataAsOneField: JSON.stringify(data) });\n}\n```\n\n# Breaking changes from V3 to V4\n\n- Log level verbose renamed to log level trace\n- JSON Format is enabled by default, it wasn't before\n- Remove transports and filters features\n","readmeFilename":"README.md","gitHead":"000cd77e782b006efa725d24301850eb74e77099","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@4.0.0-rc.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-OolI/t/i1DbNUgWcbXiyrD/S2RYRoxAB+GFxZ/TxyhcIonyCynhA8Y7d8OfAGhrIS7WS907WYLowBCZTCHzq8w==","shasum":"0b3961bda6b4436aac8968e21a6d4e981f7b1135","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-4.0.0-rc.1.tgz","fileCount":9,"unpackedSize":55379,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDw5NSiKcHzAisgTo+6NBroynLE+tHYZ/JUNVrWS+t9fQIgH3Rgv/T98YlT93GvsWa1WCF2/22HEka5VMlzSpmOvHk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaPCfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGexAAif/i8th7rpw0a8AI4YzlATE0eTtpycXT3Rnu1T7pkYAElYdR\r\nUC7tZ1OS9QmFXeE8CU+0Cq7afcUUdgwz4bFkQ+97vuvGW/xKvo6owlBucWLY\r\ncpsXcpHkXi2/lrCGSyyTm/q+3gmLgu0zf9EPlOkOCrS1O1zuKvLZP0NeC3cS\r\nPt/z1ki76n2CoW6sLJl7g4J+XyuSkNGwTa0J7jnEPj5n6FhsKjRd2SHhPI2F\r\n70CfQMV72wazSpjZ5cxI288he+LadI6CwDDxuk40o7cR9lAtmnko/DP9BFb6\r\nCY0eEyVDXn5QvHhmTPTBaU03GMQZBeDuyTH+/9IQTJ/tv5jC6bzCwnn8vuvs\r\n13ZhSLBaEN1mVwm8Q9xK7/4SKHgci9ijN35Ae/iNMrZTmFhTS9n5bKMLxof1\r\nfyyGx3f4UrVy68djsquzbLCcFDbIjA4qu2kcfy1KEpmdTc3ymFc80MhePRui\r\n97omy+925gjpwtTfc0O5Wbg+gX71T+lxyzCQWWlukgGaIJvRRcNBmbka+sQF\r\nb5lMAwkWlBZ3UmR+71cAKh5trVRT7QxmWvMxszqJAumKF3rnIIyi2QuNWdO9\r\ndb2+GftEvxGcnYR+j3pgOMvDvdIhkKH9Fh1c1Finfdp2t4HhmxWBlRDlH3fD\r\nM/aLc+KHcWH225IaRnK0lkbzalaCW4CKSA8=\r\n=uoPp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_4.0.0-rc.1_1651044511504_0.058235636597707696"},"_hasShrinkwrap":false},"4.0.0-rc.2":{"name":"@neo9/n9-node-log","version":"4.0.0-rc.2","description":"Logging node module based on Pino","keywords":["node log","pino","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && npx eslint --fix '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial --timeout=2m && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=12.0.0"},"dependencies":{"pino":"^7.11.0","pino-pretty":"^7.6.1"},"devDependencies":{"@ava/typescript":"^3.0.1","@commitlint/cli":"^16.2.3","@neo9/n9-coding-style":"^3.0.1","@release-it/conventional-changelog":"^4.3.0","@types/debug":"^4.1.7","@types/fs-extra":"^9.0.13","@types/nock":"^11.1.0","@types/node":"^17.0.27","@types/std-mocks":"^1.0.1","ava":"^4.2.0","codecov":"^3.8.3","conventional-changelog-cli":"^2.2.2","fs-extra":"^10.1.0","husky":"^4.3.8","nock":"^13.2.4","nyc":"^15.1.0","prettier":"^2.6.2","release-it":"^14.14.2","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^3.0.3","ts-node":"^10.7.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.6.3"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Pino.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 10.0.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.trace('This is a trace message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n     err: {\n      \"type\": \"Error\",\n      \"message\": \"something-went-wrong\",\n      \"stack\":\n          Error: something-went-wrong\n              at /home/bdaniel/projects/neo9/n9-libs/n9-node-log/test/index.ts:110:29\n    }\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test {\"durationMs\":1000}\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `trace`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\nFor performance matter, you can check if you need to compute your log data :\n\n```js\nif (log.isLevelEnabled('debug')) {\n\tlog.debug('My debug log', { complexDataAsOneField: JSON.stringify(data) });\n}\n```\n\n# Breaking changes from V3 to V4\n\n- Log level verbose renamed to log level trace\n- JSON Format is enabled by default, it wasn't before\n- Remove transports and filters features\n","readmeFilename":"README.md","gitHead":"462686129cb0de2becf2967627b025af4476babc","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@4.0.0-rc.2","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-Kmcp/7TnMJGhhQn55RbIebmqbOwDJrMG7hHtBUjuMkybLcBlK/f0fEnFi+Ow55TSnOU3n9HJzb4rGpT+1n0f3g==","shasum":"bdc1b29596da9ff1acbcc9c671b57976302eed6a","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-4.0.0-rc.2.tgz","fileCount":9,"unpackedSize":55558,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICVMSKRoGryuAzrfGlal8L2bt039jxHgzxWIItUelw9vAiEAutFxjjnZbSFmfgJTMaUixKCDwm61WOuz23xgXe1vVsI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaQFuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoaSQ//RB+6XvNA/LDrrQtp+/MWbLECNlQG3bBxQv7H2L+RvtdmDCOc\r\nJ0ED5096P0/4NQF3fbfcsQUzihutCc5DlVlIi5+BNw2ehlVUjs5a2FUjGTjG\r\nyFF7sQNGI7GG4OKztbBBX3g6KYHkLYwxT9P00/lqy26/06KVTaisPDUkhyXk\r\nxNs/6R1XtxjRUDv4iv5/5az8T8MyUXYuLwvwuyrVrytiKsf06QvUOIYQbs39\r\ncNaXbHhLkV62lTTkjtUKHq8HafzvPRKb3Cx2tJCqNp8+3dKoBbRlzkkbwbme\r\n02CQQBWzcgUCpxvRt/E5uptxu7ZxX90R5vGIgJUtQweCF174woHblwwZ1fl1\r\nRBYjLYCr47huY1NUQkpuSawdrf4fXRuD/3aef2XRtIpgv2i7jOxnHfZFaGnP\r\nKG9Nli6f9xLn46q7dazbXBPXwIkbFBb1tLHjTfg/75MfMIw88NLmejqGsdJm\r\nlHnzQV6jSDWcc6haEMPbVRzEVvfkymRrRZAZ4qvD9De081Y3rxAXEkMLcfna\r\nQS+7cwfYFq5adpfCTbdI7l72HFKZ8iFbDzKDiLQM39m4lWoVZixC42pmcJ4f\r\nRemlR57bQRwlAFwtDrmJz+91M4T80xnH0oR2P2WmIDAUjSlmEBjBH27my2zS\r\n8qrszNzw4w5fO6yvynwIhEd/pOyRYcCNNjY=\r\n=C8s3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_4.0.0-rc.2_1651048814427_0.7722288503510932"},"_hasShrinkwrap":false},"4.0.0-rc.3":{"name":"@neo9/n9-node-log","version":"4.0.0-rc.3","description":"Logging node module based on Pino","keywords":["node log","pino","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && npx eslint --fix '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial --timeout=2m && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=12.0.0"},"dependencies":{"pino":"^7.11.0","pino-pretty":"^7.6.1"},"devDependencies":{"@ava/typescript":"^3.0.1","@commitlint/cli":"^16.2.3","@neo9/n9-coding-style":"^3.0.1","@release-it/conventional-changelog":"^4.3.0","@types/debug":"^4.1.7","@types/fs-extra":"^9.0.13","@types/nock":"^11.1.0","@types/node":"^17.0.27","@types/std-mocks":"^1.0.1","ava":"^4.2.0","codecov":"^3.8.3","conventional-changelog-cli":"^2.2.2","fs-extra":"^10.1.0","husky":"^4.3.8","nock":"^13.2.4","nyc":"^15.1.0","prettier":"^2.6.2","release-it":"^14.14.2","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^3.0.3","ts-node":"^10.7.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.6.3"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Pino.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 10.0.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.trace('This is a trace message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n     err: {\n      \"type\": \"Error\",\n      \"message\": \"something-went-wrong\",\n      \"stack\":\n          Error: something-went-wrong\n              at /home/bdaniel/projects/neo9/n9-libs/n9-node-log/test/index.ts:110:29\n    }\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test {\"durationMs\":1000}\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `trace`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\nFor performance matter, you can check if you need to compute your log data :\n\n```js\nif (log.isLevelEnabled('debug')) {\n\tlog.debug('My debug log', { complexDataAsOneField: JSON.stringify(data) });\n}\n```\n\n# Breaking changes from V3 to V4\n\n- Log level verbose renamed to log level trace\n- JSON Format is enabled by default, it wasn't before\n- Remove transports features\n- Filters function change their signatures\n","readmeFilename":"README.md","gitHead":"798f25533ffed8996ef3e2a1057aee9796843de3","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@4.0.0-rc.3","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-4swtSWz4dDs7k184BKXjTTi8RYxiOE75Xrx5UPQj4TEow5Evdps/KpbnplVLt/Hb+Z0YJkGLcVaZpu+1x2UxhQ==","shasum":"2910b08d53c7855346c9a05c4c29e0c4957af171","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-4.0.0-rc.3.tgz","fileCount":9,"unpackedSize":57420,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDuMqP3yQxwMlnp8m3lRDgJTd4eO4eX87LcGWmEhVE/xAiBZn6VtAYI16V9rrMQFVxiukSL8eD6DoVjjNHVpLAVEPg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaTYUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZqg//ePbh4g2eWgyavkejlIT0RLjrwA3U6g+l+9TljqwUr60+9/+W\r\n6o5UxaxuLsS3B76guu4rmHhtJSpC22OYH/9hc2sF+CDh66GlzL8E2u63+9ma\r\nw0JkC9wA6IpSDdFvYk9mBeTa9mBdObSZg0fSLuTq2q389ZYsfyhguvnkfIvy\r\n0pkfVBlNQG0L6pATkw80qXVzHWtdarRxPL0PICqm1XIutfzVrEAdiHsTJG4H\r\nqHcNJIDVQcJR1neTS3IYU2Wt1PE9c5TKRe8jpbmGPa5SliHD7oyErj70MiDw\r\njJ5lmij464FXLXVbT+9DucRPe7m0V5gDVzzxDpt6bs6jBtDVmnqy7bJhMUww\r\nAaixh49jPlxNmWQbcymNge8+Qq8SNRa4dUrBk2k9GndfPCYXINiV6Onl/s43\r\nqfemvEn0a7HJzLMRMbBjlAFOStACc6hTksYMQP5O83arQuinGbiekAckJES4\r\nJAnvoREPF5uMJjwBJ18NsDmSFcWZpDU8pxnsEYPbdLvbNYHMxGceeOweA37g\r\nni/E+U+xv5Vvb1yicTywZgPrpo/F+vd0aRPqpmYQVkSl7ub7VSjz6D1RNSQb\r\ngDj9+ZK2fR5HPvDqU1clIrspQa6Wg7EM9hJ5OxMZSxGVuyuyBFUVUn+6JRHQ\r\nh8rgWD9B/UDYBYrfaZBDaRUvJqDOEUZ/lz0=\r\n=mBeg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_4.0.0-rc.3_1651062292737_0.6321770616752564"},"_hasShrinkwrap":false},"4.0.0":{"name":"@neo9/n9-node-log","version":"4.0.0","description":"Logging node module based on Pino","keywords":["node log","pino","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && npx eslint --fix '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial --timeout=2m && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=12.0.0"},"dependencies":{"pino":"^7.11.0","pino-pretty":"^7.6.1"},"devDependencies":{"@ava/typescript":"^3.0.1","@commitlint/cli":"^16.2.3","@neo9/n9-coding-style":"^3.0.1","@release-it/conventional-changelog":"^4.3.0","@types/debug":"^4.1.7","@types/fs-extra":"^9.0.13","@types/nock":"^11.1.0","@types/node":"^17.0.27","@types/std-mocks":"^1.0.1","ava":"^4.2.0","codecov":"^3.8.3","conventional-changelog-cli":"^2.2.2","fs-extra":"^10.1.0","husky":"^4.3.8","nock":"^13.2.4","nyc":"^15.1.0","prettier":"^2.6.2","release-it":"^14.14.2","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^3.0.3","ts-node":"^10.7.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.6.3"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"gitHead":"f8b6b1d2855e8ed31a460eb114a0f0e962c3924a","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@4.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-78+R9eEA7yJZGM0OhzCuljVIL0+VjVISo4+1J9I+Wuyyo9h492OXyN/QfnB0VpZDuWgEuaZzwgp+ipyS9mdxXA==","shasum":"6383aadeda8be7b55a2d89c04352ce2ba4f7e0ad","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-4.0.0.tgz","fileCount":9,"unpackedSize":57590,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA5TaOlLGW9u38Cn0cjDm55UQ3mBGz5dAF3hPVzGzL+vAiAQT9FRlh5OYHiBU7Khr9iOHMmhoVgckjYv6UCGr2Z3Tg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaVdEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrW3BAAk3bK0z68cVMT+XE8r9ROcXpqCzvwIpPW5896lXWJPe+Cxpue\r\n7lquy2bp8mBXfhJ+TYYEuQk2B5+JckPJfR5DO1N6OTZY/brZ4P/uVf8AiKbY\r\n3tZi2vznH2TdoDKX6c9oqSs8usBet+8WPxWBV4aDWMhd9dAq45voJVV8Qq+R\r\nmpF0pypVv+ZUqgeNUgb1gELr3y4Q4CzQdT6oh31JPWZEnMjqflBWZ8fR7zj8\r\ndZDXQawOQwGPYKcvf5uAMWeDrZFpgjXdTCndfquXFlSxSBQ/IZlAqQlWglW3\r\nfthJGyvs1p+pZICmv0nus+KyKM282fTQ87gS1FNHhT3gfmma0CladSLQPt/x\r\n/IPU5Vr4VguDCOfxo97gecHgSCpm+dSnCyAu3rJs4GshXfLkLKiKvboAmE7A\r\nnJ8nkldgxLuz+RmtTFWBFCn3uLfb/8dmM2NHaXxwly//k4Yjws2ULXlErP4t\r\ni4t0BJakrgAQdzP6cHRmpapRbj9yL3sUYnizqPimaiukt5uthMWsbIjHl7kB\r\nBD6GQbO6wajphttrQ10ly5F0YPDiONZiQ0hV0hLqukZ12Qlw4pXrIlJB3Uor\r\nUHsQjOgIZombjJ38u7oVmF6QKw+YmzI4UqxE7vxVRuLuGFSYKU3HXj/4I7JE\r\nsBUT5hR99sszPO4fju7f4OcB0h/FG4OaLto=\r\n=Jixh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_4.0.0_1651070788363_0.8478473467831182"},"_hasShrinkwrap":false},"4.0.1":{"name":"@neo9/n9-node-log","version":"4.0.1","description":"Logging node module based on Pino","keywords":["node log","pino","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && npx eslint --fix '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial --timeout=2m && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=12.0.0"},"dependencies":{"pino":"^7.11.0","pino-pretty":"^7.6.1"},"devDependencies":{"@ava/typescript":"^3.0.1","@commitlint/cli":"^16.2.3","@neo9/n9-coding-style":"^3.0.1","@release-it/conventional-changelog":"^4.3.0","@types/debug":"^4.1.7","@types/fs-extra":"^9.0.13","@types/nock":"^11.1.0","@types/node":"^17.0.27","@types/std-mocks":"^1.0.1","ava":"^4.2.0","codecov":"^3.8.3","conventional-changelog-cli":"^2.2.2","fs-extra":"^10.1.0","husky":"^4.3.8","nock":"^13.2.4","nyc":"^15.1.0","prettier":"^2.6.2","release-it":"^14.14.2","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^3.0.3","ts-node":"^10.7.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.6.3"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"gitHead":"98d7326995b9a7bc5f28f4ec8831977255f1e2a5","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@4.0.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-lh60iFiXUobomdGNAQy6sqWZZYFy/IyAvueu/tTDOKdi2ZCDgDYNGQPeJkx70seuESkhB7kyMI2EElsJP+sS9w==","shasum":"4d3c88095500ea900441af3269afe342c46b747b","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-4.0.1.tgz","fileCount":9,"unpackedSize":58294,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHHL2DxGIWm/jwpEHH6rfWxXz5Zm1XehxsBjcULXwKCXAiBhGcS0Maa/JYdzsIUoqb6CdM4eG1DgICN8R/lBLj06Vw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJib+m3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqPQA/6AueeecNmWTKsHnfwZnO1FhSaPi+IBBU0xmzqp6FA4irxGGf8\r\nAp/DZTdQJAetZsx4gqVqjvN2ElIMTw17aAbCzrhUs+UakovLxvZYeYubmbEt\r\nc5Nlm9BXVrM9AK1r6qHS/OYlw1MGU8ga2saU8msUL+ufeTduHEN/6C4FlNgQ\r\n1ozLEqXXLtIPyO2AUINcjlxz0Ld4FsVmnPONNkg5nX4PttRDg+m8UA0Wepw0\r\n3Pq7GddsURUzlCklg8OqQPTMkznhuraWAER7u3G+I/4FdssG43Hq1Gk+ihYc\r\neHwZ+L5UxMs46PFUgOvXKgY1Cb7UgvY5iPqd5vrMZePm+A9DQez76zOZHr0N\r\nHvXYKjsZ15715ohSjivShqHeJKI/MIQTs3KVEFiOgmh6OlcA899tDTd6u413\r\nb6cEbyP3PV/SMuy6fFE51m7xErt+HSVYwLme21/mr46KkKstIwEesqYAOVks\r\nuLmcGTswUBE01ZvhyfViPogbKl1E+6NEfxOIEkbOM1NrEMkqIKBu22yfM4on\r\nXyI//4Rv7nqfMiW0SdlUSc+t6J+O4rfqd/HUfBXP4Rhvgjwc2Py9GA7MAquV\r\nghngU/c3A3FzjcWjIF+/0obNqcXdWJzX9zQuTrpmnltcjnvJyj1+fvbt6vAA\r\nl+gUAZ9Q7CGTVa/Ww9xY2I3S/zfPjqsB+3g=\r\n=k6CV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_4.0.1_1651501494939_0.002330119273734832"},"_hasShrinkwrap":false},"4.1.0":{"name":"@neo9/n9-node-log","version":"4.1.0","description":"Logging node module based on Pino","keywords":["node log","pino","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"GNU","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && npx eslint --fix '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"npm run lint && npm run build && export NODE_ENV=test && nyc ava --verbose --color --serial --timeout=2m && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"export BABEL_DISABLE_CACHE=1 && release-it --ci","release:dry":"export BABEL_DISABLE_CACHE=1 && release-it --ci --dry-run=true","post:release":"echo Successfully released $npm_package_version"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=12.0.0"},"dependencies":{"pino":"^7.11.0","pino-pretty":"^7.6.1"},"devDependencies":{"@ava/typescript":"^3.0.1","@commitlint/cli":"^16.2.3","@neo9/n9-coding-style":"^3.0.1","@release-it/conventional-changelog":"^4.3.0","@types/debug":"^4.1.7","@types/fs-extra":"^9.0.13","@types/nock":"^11.1.0","@types/node":"^17.0.27","@types/std-mocks":"^1.0.1","ava":"^4.2.0","codecov":"^3.8.3","conventional-changelog-cli":"^2.2.2","fs-extra":"^10.1.0","husky":"^4.3.8","nock":"^13.2.4","nyc":"^15.1.0","prettier":"^2.6.2","release-it":"^14.14.2","rimraf":"^3.0.2","std-mocks":"^1.0.1","tmp-promise":"^3.0.3","ts-node":"^10.7.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.6.3"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"gitHead":"3cda4a48f021801753b6d6abd5cd671b0724387e","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@4.1.0","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-rmiHtSFnVElEZruaYBBbBtMNQ9zAeu1X6zIOuAsFIarQ1bG06lN8bxpZVLafhRINLZI8DEXzoEBBmT5CP11YLg==","shasum":"9392c2c3e08c04775b46a0546d42caf857287486","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-4.1.0.tgz","fileCount":9,"unpackedSize":58465,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEKFn6R4gegTPzQ1bLSo8Iw9m4++/LNW0yA0qO9cd/n5AiEA8JwUUSreIN83hM+YedXaCTD4Ou/Zkhe9nc/ukUCm25o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjiHhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpr7A/+KWxPyfpWDiHeSzWCoIv9A+VGnFSj7+Q6DrDv2aBj38lzuNne\r\nDfotNF+Q7fI/RFl0GyqLB6kuZGAcodaybjkgJGz5l8KXHz8mzjoH90X7nrrS\r\nqLVXRrgunUq5TzBZgqXhOj8u/GcmVC4WDAXH49W6Zox3ibpWaXxg0sVPGnwH\r\n3BG5ICQcDuyl7xpalyLAQY7FUh5/K5115LXlLicvonkpqawbSZai6PcdcLfx\r\nn/qJNAhCnS4ZUYcgCt1yFhJqM9Ngs6vEBZiwTf+vGpsam4c5lMuFXX8fFVx/\r\nap4TcfgPW3gbX13vO+y512QBzQthxJTrRxYFOIbkDf6e2kd62gTOUXyrSbQP\r\nQl8Y76UoAjU9Qv1Yp4ScBHksE4wI+AIuz92Lx9Em2s/gi5v5hyJ6krcTuUg2\r\n2Co6C/hHaD9m53UjrlO7Colz35wuzu9bIzvYnl4e4iZfVBfbcgKKXg8z0Z8h\r\nl1n/zgUmVLYOJRdDBE8lVwu0YzFJQixp1f9L7s6aSCciLaTvp3Usa9O4C+jS\r\n12UshAJqrux1uQ3t9s8LtukO0SMCzC8/La2LDChjqCwfJI/w6OfQGpIHVSgj\r\nYwjKlgg7VDvmpJNtPGvwJGgREvfCBfXQgXNIV9TmvU6hyUuviTOSnoSG4Y/a\r\nIP/JJLpFB6NY9/oEbO2TU5eOKajgmCJw8BI=\r\n=IDoj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_4.1.0_1670259169505_0.17044634680416548"},"_hasShrinkwrap":false},"5.0.0-rc.0":{"name":"@neo9/n9-node-log","version":"5.0.0-rc.0","description":"Logging node module based on Pino","keywords":["node log","pino","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"MIT","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && npx eslint --fix '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"export NODE_ENV=test && nyc ava --verbose --color --serial --timeout=2m --no-worker-threads && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"release-it","release:dry":"release-it --dry-run"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=16.0.0"},"dependencies":{"chalk":"^4.1.2","fast-iso-string":"^1.0.0","fast-safe-stringify":"^2.1.1"},"devDependencies":{"@ava/typescript":"^4.1.0","@commitlint/cli":"^17.7.1","@neo9/n9-coding-style":"^5.1.2","@release-it/conventional-changelog":"^7.0.1","@types/debug":"^4.1.8","@types/fs-extra":"^11.0.1","@types/node":"^20.6.0","@types/std-mocks":"^1.0.1","ava":"^5.3.1","codecov":"^3.8.3","conventional-changelog-cli":"^4.1.0","husky":"^4.3.8","nock":"^13.3.3","nyc":"^15.1.0","prettier":"^3.0.3","release-it":"^16.1.5","rimraf":"^5.0.1","std-mocks":"^1.0.1","ts-node":"^10.9.1","typescript":"^5.2.2"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Pino.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 10.0.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.trace('This is a trace message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n     err: {\n      \"type\": \"Error\",\n      \"message\": \"something-went-wrong\",\n      \"stack\":\n          Error: something-went-wrong\n              at /home/bdaniel/projects/neo9/n9-libs/n9-node-log/test/index.ts:110:29\n    }\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test {\"durationMs\":1000}\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `trace`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\nFor performance matter, you can check if you need to compute your log data :\n\n```js\nif (log.isLevelEnabled('debug')) {\n\tlog.debug('My debug log', { complexDataAsOneField: JSON.stringify(data) });\n}\n```\n\n# Breaking changes from V3 to V4\n\n- Log level verbose renamed to log level trace\n- JSON Format is enabled by default, it wasn't before\n- Remove transports features\n- Filters function change their signatures\n","readmeFilename":"README.md","gitHead":"9eefc14dc53128774ee5f0c2f5a71175dd6d87a9","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@5.0.0-rc.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-mRKanH5Sa6LYiJmxMh7X1oreONDqdVCDc7bmmx6IOnfiOdm5K99Q6ZzcsVOmf86QqLpIYSWsU9vpL8+2+30X+A==","shasum":"43de7a903997b743a130f4ea4d72170b7e5462c3","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-5.0.0-rc.0.tgz","fileCount":6,"unpackedSize":57866,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpw3hpCwIG6LxSSdNJ5DZvn/nz55svcqMFCmicx7hW0AIgVFev6uctuixNOMn4+kd9cwyQtOoHasZkBAuhe66U+Og="}]},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_5.0.0-rc.0_1696348666107_0.04617180514865882"},"_hasShrinkwrap":false},"5.0.0-rc.1":{"name":"@neo9/n9-node-log","version":"5.0.0-rc.1","description":"Logging node module based on Pino","keywords":["node log","pino","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"MIT","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && npx eslint --fix '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"export NODE_ENV=test && nyc ava --verbose --color --serial --timeout=2m --no-worker-threads && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"release-it","release:dry":"release-it --dry-run"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=16.0.0"},"dependencies":{"chalk":"^4.1.2","fast-iso-string":"^1.0.0","fast-safe-stringify":"^2.1.1"},"devDependencies":{"@ava/typescript":"^4.1.0","@commitlint/cli":"^17.7.1","@neo9/n9-coding-style":"^5.1.2","@release-it/conventional-changelog":"^7.0.1","@types/debug":"^4.1.8","@types/fs-extra":"^11.0.1","@types/node":"^20.6.0","@types/std-mocks":"^1.0.1","ava":"^5.3.1","codecov":"^3.8.3","conventional-changelog-cli":"^4.1.0","husky":"^4.3.8","nock":"^13.3.3","nyc":"^15.1.0","prettier":"^3.0.3","release-it":"^16.1.5","rimraf":"^5.0.1","std-mocks":"^1.0.1","ts-node":"^10.9.1","typescript":"^5.2.2"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Pino.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 10.0.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.trace('This is a trace message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n     err: {\n      \"type\": \"Error\",\n      \"message\": \"something-went-wrong\",\n      \"stack\":\n          Error: something-went-wrong\n              at /home/bdaniel/projects/neo9/n9-libs/n9-node-log/test/index.ts:110:29\n    }\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test {\"durationMs\":1000}\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `trace`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\nFor performance matter, you can check if you need to compute your log data :\n\n```js\nif (log.isLevelEnabled('debug')) {\n\tlog.debug('My debug log', { complexDataAsOneField: JSON.stringify(data) });\n}\n```\n\n# Breaking changes from V3 to V4\n\n- Log level verbose renamed to log level trace\n- JSON Format is enabled by default, it wasn't before\n- Remove transports features\n- Filters function change their signatures\n","readmeFilename":"README.md","gitHead":"e1d95343b553e8905fb558ae3aff914f35d800eb","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@5.0.0-rc.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-xM1wBChCkfrqFNTt5F/2ls7iuK9CfpA//p7p1KBDe/chtquaTbZ4we62uMsSgCa+rZXLoZR79RqlvlmKU+STsQ==","shasum":"c960f06fee0028f6b942535ba89a71155b273d2a","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-5.0.0-rc.1.tgz","fileCount":6,"unpackedSize":57956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwEtbyxAdLcmKpdjGjJ2AzKHYKjVo11cu1u5FZAI82hgIgYfZUsB/XVo0lIyDhduYkGa/1NPZ6MwbQCswrpI0Jdnc="}]},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_5.0.0-rc.1_1696349654244_0.9071847785161307"},"_hasShrinkwrap":false},"5.0.0-rc.2":{"name":"@neo9/n9-node-log","version":"5.0.0-rc.2","description":"Logging node module based on Pino","keywords":["node log","pino","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"MIT","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && npx eslint --fix '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"export NODE_ENV=test && nyc ava --verbose --color --serial --timeout=2m --no-worker-threads && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"release-it","release:dry":"release-it --dry-run"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=16.0.0"},"dependencies":{"chalk":"^4.1.2","fast-iso-string":"^1.0.0","fast-safe-stringify":"^2.1.1"},"devDependencies":{"@ava/typescript":"^4.1.0","@commitlint/cli":"^17.7.1","@neo9/n9-coding-style":"^5.1.2","@neo9/n9-node-utils":"^2.2.1","@release-it/conventional-changelog":"^7.0.1","@types/debug":"^4.1.8","@types/fs-extra":"^11.0.1","@types/node":"^20.6.0","@types/std-mocks":"^1.0.1","ava":"^5.3.1","codecov":"^3.8.3","conventional-changelog-cli":"^4.1.0","husky":"^4.3.8","nock":"^13.3.3","nyc":"^15.1.0","prettier":"^3.0.3","release-it":"^16.1.5","rimraf":"^5.0.1","std-mocks":"^1.0.1","ts-node":"^10.9.1","typescript":"^5.2.2"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Pino.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 10.0.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.trace('This is a trace message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n     err: {\n      \"type\": \"Error\",\n      \"message\": \"something-went-wrong\",\n      \"stack\":\n          Error: something-went-wrong\n              at /home/bdaniel/projects/neo9/n9-libs/n9-node-log/test/index.ts:110:29\n    }\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test {\"durationMs\":1000}\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `trace`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\nFor performance matter, you can check if you need to compute your log data :\n\n```js\nif (log.isLevelEnabled('debug')) {\n\tlog.debug('My debug log', { complexDataAsOneField: JSON.stringify(data) });\n}\n```\n\n# Breaking changes from V3 to V4\n\n- Log level verbose renamed to log level trace\n- JSON Format is enabled by default, it wasn't before\n- Remove transports features\n- Filters function change their signatures\n","readmeFilename":"README.md","gitHead":"8f23b7fc3b102ffbc59c793b2a4d48efb8fc1af4","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@5.0.0-rc.2","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ZM84Yk2Wnnbo5cz7YHKkip4neIVPSQB18qTwILzC8DRcTWFVLLF4f5DvNF8e1HO57ACifWa74pN43vK4xQFSHg==","shasum":"0b32232bcaf203f50c0527100db0a05508ae51c7","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-5.0.0-rc.2.tgz","fileCount":6,"unpackedSize":58016,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOt9x0qknBdzWzWF1B/3oy+8bTL3kYSW8+3fKW4a7qKQIhAOpR0rvQum9f92VcruH9aTWuTphuXVbanqcPHK+DsW0/"}]},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_5.0.0-rc.2_1696428187866_0.5965692327286964"},"_hasShrinkwrap":false},"5.0.0-rc.3":{"name":"@neo9/n9-node-log","version":"5.0.0-rc.3","description":"Logging node module based on Pino","keywords":["node log","pino","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"MIT","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && npx eslint --fix '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"export NODE_ENV=test && nyc ava --verbose --color --serial --timeout=2m --no-worker-threads && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"release-it","release:dry":"release-it --dry-run"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=16.0.0"},"dependencies":{"chalk":"^4.1.2","fast-iso-string":"^1.0.0","fast-safe-stringify":"^2.1.1"},"devDependencies":{"@ava/typescript":"^4.1.0","@commitlint/cli":"^17.7.1","@neo9/n9-coding-style":"^5.1.2","@neo9/n9-node-utils":"^2.2.1","@release-it/conventional-changelog":"^7.0.1","@types/debug":"^4.1.8","@types/fs-extra":"^11.0.1","@types/node":"^20.6.0","@types/std-mocks":"^1.0.1","ava":"^5.3.1","codecov":"^3.8.3","conventional-changelog-cli":"^4.1.0","husky":"^4.3.8","nock":"^13.3.3","nyc":"^15.1.0","prettier":"^3.0.3","release-it":"^16.1.5","rimraf":"^5.0.1","std-mocks":"^1.0.1","ts-node":"^10.9.1","typescript":"^5.2.2"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Pino.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 10.0.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.trace('This is a trace message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n     err: {\n      \"type\": \"Error\",\n      \"message\": \"something-went-wrong\",\n      \"stack\":\n          Error: something-went-wrong\n              at /home/bdaniel/projects/neo9/n9-libs/n9-node-log/test/index.ts:110:29\n    }\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test {\"durationMs\":1000}\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `trace`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\nFor performance matter, you can check if you need to compute your log data :\n\n```js\nif (log.isLevelEnabled('debug')) {\n\tlog.debug('My debug log', { complexDataAsOneField: JSON.stringify(data) });\n}\n```\n\n# Breaking changes from V3 to V4\n\n- Log level verbose renamed to log level trace\n- JSON Format is enabled by default, it wasn't before\n- Remove transports features\n- Filters function change their signatures\n","readmeFilename":"README.md","gitHead":"fbcd3ecd5f406f7076d4b391aa4cba509b929747","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@5.0.0-rc.3","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-bGWHTFSbMoEbrTMEjnezrRe2kDwPXyrYzM7x05uq+PKZj67Dii2sdZsVJ0Jm7Nf3mRFtNTWxfo78y3L6Sz73+g==","shasum":"1a42c71f17ece02caa0291589e8ce8ad618ae6a0","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-5.0.0-rc.3.tgz","fileCount":6,"unpackedSize":58056,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQ7QRkgjqIA9idoo7ecUJCHt0r1LufhXgiQTeZSYJBQgIgGY48ZU44kyv4Y+GltHS9zybsgRiNUYUbcFU4t5gJOc8="}]},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_5.0.0-rc.3_1696434414964_0.5140142554818405"},"_hasShrinkwrap":false},"5.0.0-rc.4":{"name":"@neo9/n9-node-log","version":"5.0.0-rc.4","description":"Logging node module based on Pino","keywords":["node log","pino","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"MIT","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && npx eslint --fix '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"export NODE_ENV=test && nyc ava --verbose --color --serial --timeout=2m --no-worker-threads && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"release-it","release:dry":"release-it --dry-run"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=16.0.0"},"dependencies":{"chalk":"^4.1.2","fast-iso-string":"^1.0.0","fast-safe-stringify":"^2.1.1"},"devDependencies":{"@ava/typescript":"^4.1.0","@commitlint/cli":"^17.7.1","@neo9/n9-coding-style":"^5.1.2","@neo9/n9-node-utils":"^2.2.1","@release-it/conventional-changelog":"^7.0.1","@types/debug":"^4.1.8","@types/fs-extra":"^11.0.1","@types/node":"^20.6.0","@types/std-mocks":"^1.0.1","ava":"^5.3.1","codecov":"^3.8.3","conventional-changelog-cli":"^4.1.0","husky":"^4.3.8","nock":"^13.3.3","nyc":"^15.1.0","prettier":"^3.0.3","release-it":"^16.1.5","rimraf":"^5.0.1","std-mocks":"^1.0.1","ts-node":"^10.9.1","typescript":"^5.2.2"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Pino.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 10.0.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.trace('This is a trace message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n     err: {\n      \"type\": \"Error\",\n      \"message\": \"something-went-wrong\",\n      \"stack\":\n          Error: something-went-wrong\n              at /home/bdaniel/projects/neo9/n9-libs/n9-node-log/test/index.ts:110:29\n    }\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test {\"durationMs\":1000}\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `trace`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\nFor performance matter, you can check if you need to compute your log data :\n\n```js\nif (log.isLevelEnabled('debug')) {\n\tlog.debug('My debug log', { complexDataAsOneField: JSON.stringify(data) });\n}\n```\n\n# Breaking changes from V3 to V4\n\n- Log level verbose renamed to log level trace\n- JSON Format is enabled by default, it wasn't before\n- Remove transports features\n- Filters function change their signatures\n","readmeFilename":"README.md","gitHead":"3fb14194c2b064a51b8da445222244e914f16462","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@5.0.0-rc.4","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-eRzEuQo3EFr/qXCuYbKXnXRpDphNsWTDcuOgX/Ehj3nS9mJ7NflyJ2UTgTdSPB9xzby8De67l/lZXSXJD8vOPg==","shasum":"63db83b913d23f8c6e8ff02d490a9daeb92c02ef","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-5.0.0-rc.4.tgz","fileCount":6,"unpackedSize":58478,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSBTlGXpuSRDRk+oZ0TLVYJO0xk2RUusOmBTlmhzG74AIhAIsr+Lz/aSTT7SKi+bhGhlxlRFaXFAwpUqCcZNn26SR1"}]},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_5.0.0-rc.4_1696867406394_0.6078048290500369"},"_hasShrinkwrap":false},"5.0.0-rc.5":{"name":"@neo9/n9-node-log","version":"5.0.0-rc.5","description":"Logging node module based on Pino","keywords":["node log","pino","log","logging","debug"],"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"license":"MIT","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rimraf dist/ && tsc","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && npx eslint --fix '{src,test}/**/*.ts'","format":"prettier --write '{,@(src|test)/**/}*.*'","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --verbose --color --serial --watch","test":"export NODE_ENV=test && nyc ava --verbose --color --serial --timeout=2m --no-worker-threads && nyc report --reporter=html","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","preversion":"npm test","prepublishOnly":"npm run build","release":"release-it","release:dry":"release-it --dry-run"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"engines":{"node":">=16.0.0"},"dependencies":{"chalk":"^4.1.2","fast-iso-string":"^1.0.0","fast-safe-stringify":"^2.1.1"},"devDependencies":{"@ava/typescript":"^4.1.0","@commitlint/cli":"^17.7.1","@neo9/n9-coding-style":"^5.1.2","@neo9/n9-node-utils":"^2.2.1","@release-it/conventional-changelog":"^7.0.1","@types/debug":"^4.1.8","@types/fs-extra":"^11.0.1","@types/node":"^20.6.0","@types/std-mocks":"^1.0.1","ava":"^5.3.1","codecov":"^3.8.3","conventional-changelog-cli":"^4.1.0","husky":"^4.3.8","nock":"^13.3.3","nyc":"^15.1.0","prettier":"^3.0.3","release-it":"^16.1.5","rimraf":"^5.0.1","std-mocks":"^1.0.1","ts-node":"^10.9.1","typescript":"^5.2.2"},"ava":{"files":["test/*"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"commitlint":{"parserPreset":{"parserOpts":{"headerPattern":"^([a-zA-Z0-9]*): ([a-zA-Z0-9-_' .]*)$","headerCorrespondence":["scope","subject"]}},"rules":{"scope-empty":[2,"never"],"scope-case":[2,"always","lower-case"],"scope-max-length":[2,"always",12],"subject-empty":[2,"never"],"subject-case":[2,"always",["sentence-case"]],"subject-full-stop":[2,"never","."],"subject-max-length":[2,"always",70]}},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Pino.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 10.0.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.trace('This is a trace message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n     err: {\n      \"type\": \"Error\",\n      \"message\": \"something-went-wrong\",\n      \"stack\":\n          Error: something-went-wrong\n              at /home/bdaniel/projects/neo9/n9-libs/n9-node-log/test/index.ts:110:29\n    }\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test {\"durationMs\":1000}\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `trace`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\nFor performance matter, you can check if you need to compute your log data :\n\n```js\nif (log.isLevelEnabled('debug')) {\n\tlog.debug('My debug log', { complexDataAsOneField: JSON.stringify(data) });\n}\n```\n\n# Breaking changes from V3 to V4\n\n- Log level verbose renamed to log level trace\n- JSON Format is enabled by default, it wasn't before\n- Remove transports features\n- Filters function change their signatures\n","readmeFilename":"README.md","gitHead":"97a8807561b52eb3703bfef03165047dbdb2ede6","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"homepage":"https://github.com/neo9/n9-node-log#readme","_id":"@neo9/n9-node-log@5.0.0-rc.5","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-6djKtSJ9ghOkFBbzILBuJ0lclwwIXXp5use53egwt3YfrIE+bf0lbV7MQHQtsV2mxS8XQBF6qcO4jFIHvW+KFQ==","shasum":"f05dd6d818569b5a23933651435f675bd1859199","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-5.0.0-rc.5.tgz","fileCount":6,"unpackedSize":59000,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGPde7y0WnKPc++0cqcuTjmPP3R8kbrdIKSH6RxHMEYbAiBTqIcg3OsN7Fn+xqWoQIyDU36nzCXJZ5TPZn8ogQ6nbA=="}]},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_5.0.0-rc.5_1696870646591_0.20185490093262426"},"_hasShrinkwrap":false},"5.0.0-rc.6":{"name":"@neo9/n9-node-log","version":"5.0.0-rc.6","description":"Logging node module based on Pino","keywords":["node log","log","logging","debug","trace","warn","error","circular"],"license":"GPL-3.0-or-later","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"dev":"rimraf dist/ && tsc --watch","build":"rimraf dist/ && tsc && rm -rf dist/test && mv dist/src/* dist/ && rm -rf dist/src","format":"prettier --write '{,@(src|test)/**/}*.*'","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && eslint --fix --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:verbose":"eslint --fix --config .eslintrc.yaml '{src,test}/**/*.ts' --format unix '{src,test}/**/*.ts'","test:debug":"export NODE_ENV=test && TS_NODE_FILES=true ava debug --no-worker-threads --verbose --color --serial --host 0.0.0.0 --port 9230 --break","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --no-worker-threads --verbose --color --serial --watch","test":"export NODE_ENV=test && TS_NODE_FILES=true nyc ava --no-worker-threads --verbose --color --serial && nyc report --reporter=html","test:one":"export NODE_ENV=test && TS_NODE_FILES=true ava --no-worker-threads --verbose --color --serial","release":"release-it","release:pre-release":"release-it --preRelease","release:dry":"release-it --dry-run"},"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"homepage":"https://github.com/neo9/n9-node-log#readme","engines":{"node":">= 16.20"},"dependencies":{"chalk":"^4.1.2","fast-iso-string":"^1.0.0","fast-safe-stringify":"^2.1.1"},"devDependencies":{"@ava/typescript":"^4.1.0","@commitlint/cli":"^17.7.1","@neo9/n9-coding-style":"^5.1.2","@neo9/n9-node-utils":"^3.0.0-rc.0","@release-it/conventional-changelog":"^7.0.1","@tsconfig/node16":"^16.1.1","@types/debug":"^4.1.8","@types/fs-extra":"^11.0.1","@types/node":"^20.8.4","@types/std-mocks":"^1.0.1","ava":"^5.3.1","husky":"^4.3.8","nyc":"^15.1.0","prettier":"^3.0.3","release-it":"^16.1.5","rimraf":"^5.0.1","std-mocks":"^2.0.0","ts-node":"^10.9.1","typescript":"^5.2.2"},"ava":{"files":["test/**/*.test.ts"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"readme":"# n9-node-log\n\nLogging node module based on Pino.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 10.0.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.trace('This is a trace message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n     err: {\n      \"type\": \"Error\",\n      \"message\": \"something-went-wrong\",\n      \"stack\":\n          Error: something-went-wrong\n              at /home/bdaniel/projects/neo9/n9-libs/n9-node-log/test/index.ts:110:29\n    }\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test {\"durationMs\":1000}\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `trace`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\nFor performance matter, you can check if you need to compute your log data :\n\n```js\nif (log.isLevelEnabled('debug')) {\n\tlog.debug('My debug log', { complexDataAsOneField: JSON.stringify(data) });\n}\n```\n\n# Breaking changes from V3 to V4\n\n- Log level verbose renamed to log level trace\n- JSON Format is enabled by default, it wasn't before\n- Remove transports features\n- Filters function change their signatures\n","readmeFilename":"README.md","gitHead":"889eaeb4a28123674a77bc1d027d63af44a7eaee","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"_id":"@neo9/n9-node-log@5.0.0-rc.6","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+QiIIO522Ov8V3/W2FMcycxaaBO6wVqYwaxmtwwGllpmruPgesgS+XBdENo9Ds47cVbZctovytZ35arLe/A2Og==","shasum":"bcce306ce7d936a7efe211defd1b687c34d27286","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-5.0.0-rc.6.tgz","fileCount":6,"unpackedSize":58596,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAnx+EuviHyAG8YWg6xjMJYDt9tDisf0PLLvv4vbzPZgIgZdm1ALWcRIaEg4i438o3Jsf7qOC7Et5IAn31DAwb3d4="}]},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_5.0.0-rc.6_1697200659458_0.5270323450805283"},"_hasShrinkwrap":false},"5.0.0-rc.7":{"name":"@neo9/n9-node-log","version":"5.0.0-rc.7","description":"Logging node module based on Pino","keywords":["node log","log","logging","debug","trace","warn","error","circular"],"license":"GPL-3.0-or-later","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"dev":"rimraf dist/ && tsc --watch","build":"rimraf dist/ && tsc && rm -rf dist/test && mv dist/src/* dist/ && rm -rf dist/src","format":"prettier --write '{,@(src|test)/**/}*.*'","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && eslint --fix --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:verbose":"eslint --fix --config .eslintrc.yaml '{src,test}/**/*.ts' --format unix '{src,test}/**/*.ts'","test:debug":"export NODE_ENV=test && TS_NODE_FILES=true ava debug --no-worker-threads --verbose --color --serial --host 0.0.0.0 --port 9230 --break","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --no-worker-threads --verbose --color --serial --watch","test":"export NODE_ENV=test && TS_NODE_FILES=true nyc ava --no-worker-threads --verbose --color --serial && nyc report --reporter=html","test:one":"export NODE_ENV=test && TS_NODE_FILES=true ava --no-worker-threads --verbose --color --serial","release":"release-it","release:pre-release":"release-it --preRelease","release:dry":"release-it --dry-run"},"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"homepage":"https://github.com/neo9/n9-node-log#readme","engines":{"node":">= 16.20"},"dependencies":{"chalk":"^4.1.2","fast-iso-string":"^1.0.0","fast-safe-stringify":"^2.1.1","strip-ansi":"^6.0.1"},"devDependencies":{"@ava/typescript":"^4.1.0","@commitlint/cli":"^17.7.1","@neo9/n9-coding-style":"^5.1.2","@neo9/n9-node-utils":"^3.0.0-rc.0","@release-it/conventional-changelog":"^7.0.1","@tsconfig/node16":"^16.1.1","@types/debug":"^4.1.8","@types/fs-extra":"^11.0.1","@types/node":"^20.8.4","@types/std-mocks":"^1.0.1","ava":"^5.3.1","husky":"^4.3.8","nyc":"^15.1.0","prettier":"^3.0.3","release-it":"^16.1.5","rimraf":"^5.0.1","std-mocks":"^2.0.0","ts-node":"^10.9.1","typescript":"^5.2.2"},"ava":{"files":["test/**/*.test.ts"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"_id":"@neo9/n9-node-log@5.0.0-rc.7","readme":"# n9-node-log\n\nLogging node module based on Pino.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 10.0.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.trace('This is a trace message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n     err: {\n      \"type\": \"Error\",\n      \"message\": \"something-went-wrong\",\n      \"stack\":\n          Error: something-went-wrong\n              at /home/bdaniel/projects/neo9/n9-libs/n9-node-log/test/index.ts:110:29\n    }\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test {\"durationMs\":1000}\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `trace`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\nFor performance matter, you can check if you need to compute your log data :\n\n```js\nif (log.isLevelEnabled('debug')) {\n\tlog.debug('My debug log', { complexDataAsOneField: JSON.stringify(data) });\n}\n```\n\n# Breaking changes from V3 to V4\n\n- Log level verbose renamed to log level trace\n- JSON Format is enabled by default, it wasn't before\n- Remove transports features\n- Filters function change their signatures\n","readmeFilename":"README.md","gitHead":"cc6ace3a24f5184299fbc5be7e25f96153124bc9","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"_nodeVersion":"20.8.1","_npmVersion":"10.1.0","dist":{"integrity":"sha512-NVlucbuYwHxoVcWjgDHL6kBDi8jQWjfwDbiJnLxwuNll8p3VdAYZjDcLVIeipZPn7mwxuZ+i0Pa/N8u4b5cmEg==","shasum":"51c92a824b45f63abaa58a510ee50e8844528781","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-5.0.0-rc.7.tgz","fileCount":6,"unpackedSize":59248,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDe2RniLZRdEQFGlX1XozaODscI1P2xSN/FvMHr6D7KFQIgDtmuK7iAYn7i7HZjjymRJeeolawMTLXbVrEeZ4qDX/k="}]},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"gdv@neo9.fr"},{"name":"cpetit","email":"clement.petit@neo9.fr"},{"name":"pierre_mallet_neo9","email":"pierre.mallet@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_5.0.0-rc.7_1697712349696_0.9065904120817987"},"_hasShrinkwrap":false},"5.0.0":{"name":"@neo9/n9-node-log","version":"5.0.0","description":"Logging node module managing json or human format","keywords":["node log","log","logging","debug","trace","warn","error","circular"],"license":"GPL-3.0-or-later","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"dev":"rimraf dist/ && tsc --watch","build":"rimraf dist/ && tsc && rm -rf dist/test && mv dist/src/* dist/ && rm -rf dist/src","format":"prettier --write '{,@(src|test)/**/}*.*'","lint":"eslint --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:apply":"npm run format && eslint --fix --config .eslintrc.yaml '{src,test}/**/*.ts'","lint:verbose":"eslint --fix --config .eslintrc.yaml '{src,test}/**/*.ts' --format unix '{src,test}/**/*.ts'","test:debug":"export NODE_ENV=test && TS_NODE_FILES=true ava debug --no-worker-threads --verbose --color --serial --host 0.0.0.0 --port 9230 --break","test:dev":"export NODE_ENV=test && TS_NODE_FILES=true ava --no-worker-threads --verbose --color --serial --watch","test":"export NODE_ENV=test && TS_NODE_FILES=true nyc ava --no-worker-threads --verbose --color --serial && nyc report --reporter=html","test:one":"export NODE_ENV=test && TS_NODE_FILES=true ava --no-worker-threads --verbose --color --serial","release":"release-it","release:pre-release":"release-it --preRelease","release:dry":"release-it --dry-run"},"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"homepage":"https://github.com/neo9/n9-node-log#readme","engines":{"node":">= 16.20"},"dependencies":{"chalk":"^4.1.2","fast-iso-string":"^1.0.0","fast-safe-stringify":"^2.1.1","strip-ansi":"^6.0.1"},"devDependencies":{"@ava/typescript":"^4.1.0","@commitlint/cli":"^18.4.1","@neo9/n9-coding-style":"^6.0.0","@neo9/n9-node-utils":"^3.0.0","@release-it/conventional-changelog":"^8.0.1","@tsconfig/node16":"^16.1.1","@types/debug":"^4.1.12","@types/fs-extra":"^11.0.4","@types/node":"^20.9.0","@types/std-mocks":"^1.0.4","ava":"^5.3.1","husky":"^4.3.8","nyc":"^15.1.0","prettier":"^3.1.0","release-it":"^17.0.0","rimraf":"^5.0.1","std-mocks":"^2.0.0","ts-node":"^10.9.1","typescript":"^5.2.2"},"ava":{"files":["test/**/*.test.ts"],"timeout":"1m","extensions":["ts"],"require":["ts-node/register"]},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"npm run format && npm run lint"}},"_id":"@neo9/n9-node-log@5.0.0","gitHead":"58a9439dacc5a4be9e247030184983da5d3e8ee6","bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-Ny5w3RHJ+jOeeSz6BV+GQcBzXTSrXawEfneD1XM0H4MTU70A5PKCpj3nbyWssI6fOPj3lHpnSyPMqmAVayT3hg==","shasum":"184a4b3580b044abd5b92910c8386db6f543689a","tarball":"https://registry.npmjs.org/@neo9/n9-node-log/-/n9-node-log-5.0.0.tgz","fileCount":6,"unpackedSize":59255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQIXeAGyMorXjAGMFspeAKNJ4ZXZpnS3EQF0wteIBt8AIhAOGQnbqbIzBUwkfZeRb1UkMf2IcRsUFVh66Lq9DPM90f"}]},"_npmUser":{"name":"benjd90","email":"benjamindaniel902@gmail.com"},"directories":{},"maintainers":[{"name":"cribeiron9","email":"cedric.ribeiro@neo9.fr"},{"name":"n9-dsabatier","email":"david.sabatier@neo9.fr"},{"name":"fmarion","email":"francois.marion@neo9.fr"},{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"guillaume.de.vinzelles@neo9.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n9-node-log_5.0.0_1699982928892_0.11250003163897238"},"_hasShrinkwrap":false}},"readme":"# n9-node-log\n\nLogging node module based on Pino.\n\n[![npm version](https://img.shields.io/npm/v/@neo9/n9-node-log.svg)](https://www.npmjs.com/package/@neo9/n9-node-log)\n[![Travis](https://img.shields.io/travis/neo9/n9-node-log/master.svg)](https://travis-ci.org/neo9/n9-node-log)\n[![Coverage](https://img.shields.io/codecov/c/github/neo9/n9-node-log/master.svg)](https://codecov.io/gh/neo9/n9-node-log)\n[![license](https://img.shields.io/github/license/neo9/n9-node-log.svg)](https://github.com/neo9/n9-node-log/blob/master/LICENSE)\n\n## Requirements\n\n- NodeJS >= 10.0.0\n\n## Installation\n\n```bash\nnpm install --save @neo9/n9-node-log\n```\n\n## Usage\n\n```ts\nimport n9Log from '@neo9/n9-node-log';\n\nconst log = n9Log('my-app-name');\n\n// Write on stdout\nlog.trace('This is a trace message');\nlog.debug('This is a debug message');\nlog.info('This is an information message');\nlog.warn('Warning, this feature will be removed soon');\n// Write on stderr\nlog.error('An error appened');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] This is an information message\n2017-05-12T15:57:14.689Z - warn: [my-app-name] Warning, this feature will be removed soon\n2017-05-12T15:57:14.974Z - error: [my-app-name] An error appened\n```\n\n## Metadata\n\n```ts\nlog.info('Log with metadata', { anything: 'this is metadata' });\nlog.error('Here an error', new Error('hello'));\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] Log with metadata anything=this is metadata\n2017-05-12T15:57:14.785Z - error: [node-ts-skeleton] Here an error Error: hello\n     err: {\n      \"type\": \"Error\",\n      \"message\": \"something-went-wrong\",\n      \"stack\":\n          Error: something-went-wrong\n              at /home/bdaniel/projects/neo9/n9-libs/n9-node-log/test/index.ts:110:29\n    }\n```\n\n## Prefixing\n\n```ts\nconst logUsers = log.module('users');\n\nlogUsers.info('Log specific to users module');\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name:users] Log specific to users module\n```\n\n## Profiling\n\n```ts\nlog.profile('test');\nsetTimeout(() => log.profile('test'), 1000);\n```\n\n```console\n2017-05-12T15:57:14.474Z - info: [my-app-name] test {\"durationMs\":1000}\n```\n\n## Log level\n\nYou can filter the list of logs on startup with the `N9LOG` environment or with the `level` option.\n\nPossible values:\n\n- `trace`: Display all logs\n- `debug`: Display debug + info + warn + error logs\n- `info`: Display info + warn + error logs\n- `warn`: Display warn + error logs\n- `error`: Display only error logs\n\nDefault value: `info`\n\nExample: `N9LOG=error node server.js` will display only error logs.\n\nFor performance matter, you can check if you need to compute your log data :\n\n```js\nif (log.isLevelEnabled('debug')) {\n\tlog.debug('My debug log', { complexDataAsOneField: JSON.stringify(data) });\n}\n```\n\n# Breaking changes from V3 to V4\n\n- Log level verbose renamed to log level trace\n- JSON Format is enabled by default, it wasn't before\n- Remove transports features\n- Filters function change their signatures\n","maintainers":[{"name":"cribeiron9","email":"cedric.ribeiro@neo9.fr"},{"name":"n9-dsabatier","email":"david.sabatier@neo9.fr"},{"name":"fmarion","email":"francois.marion@neo9.fr"},{"name":"benjd90","email":"benjamindaniel902@gmail.com"},{"name":"cballesta","email":"cyril.ballesta@neo9.fr"},{"name":"mrskyce","email":"guillaume.de.vinzelles@neo9.fr"}],"time":{"modified":"2023-11-14T17:28:49.452Z","created":"2017-08-29T16:16:31.029Z","2.2.2":"2017-08-29T16:16:31.029Z","2.3.1":"2017-08-30T09:22:31.863Z","2.4.0":"2017-10-19T12:37:08.265Z","2.5.0":"2018-04-19T15:21:21.204Z","2.5.1":"2018-04-19T16:22:28.636Z","2.5.2":"2018-04-24T12:08:13.915Z","2.6.0":"2018-05-22T16:06:36.951Z","3.0.0-rc.0":"2020-04-06T17:52:02.397Z","3.0.1-0":"2020-04-06T17:54:47.505Z","3.0.0-rc.1":"2020-04-06T17:56:16.580Z","3.0.0-rc.2":"2020-09-23T10:42:49.837Z","3.0.0-rc.3":"2020-09-23T10:47:56.844Z","3.0.0-rc.4":"2020-09-23T11:04:51.368Z","3.0.0":"2020-09-23T12:25:29.208Z","3.1.0":"2020-11-19T12:31:18.270Z","3.1.1":"2020-11-19T12:48:15.284Z","3.2.0":"2021-05-18T15:31:53.329Z","3.2.1":"2022-04-25T16:06:24.248Z","4.0.0-rc.0":"2022-04-26T16:24:11.729Z","4.0.0-rc.1":"2022-04-27T07:28:31.634Z","4.0.0-rc.2":"2022-04-27T08:40:14.608Z","4.0.0-rc.3":"2022-04-27T12:24:52.917Z","4.0.0":"2022-04-27T14:46:28.496Z","4.0.1":"2022-05-02T14:24:55.120Z","4.1.0":"2022-12-05T16:52:49.663Z","5.0.0-rc.0":"2023-10-03T15:57:46.297Z","5.0.0-rc.1":"2023-10-03T16:14:14.398Z","5.0.0-rc.2":"2023-10-04T14:03:08.080Z","5.0.0-rc.3":"2023-10-04T15:46:55.224Z","5.0.0-rc.4":"2023-10-09T16:03:26.601Z","5.0.0-rc.5":"2023-10-09T16:57:26.829Z","5.0.0-rc.6":"2023-10-13T12:37:39.655Z","5.0.0-rc.7":"2023-10-19T10:45:49.897Z","5.0.0":"2023-11-14T17:28:49.159Z"},"repository":{"type":"git","url":"git+https://github.com/neo9/n9-node-log.git"},"author":{"name":"Benjamin DANIEL","email":"benjamin.daniel@neo9.fr"},"readmeFilename":"README.md","homepage":"https://github.com/neo9/n9-node-log#readme","keywords":["node log","log","logging","debug","trace","warn","error","circular"],"bugs":{"url":"https://github.com/neo9/n9-node-log/issues"},"license":"GPL-3.0-or-later"}