{"_id":"typescript-log","_rev":"4-9802d56a6a84cab50f664ad9eb3d7bf5","name":"typescript-log","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"typescript-log","version":"1.0.0","description":"Logger interface with a few simple implementations, interface compatible with pino, bunyan and probably others","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/sevenwestmedia-labs/typescript-log.git"},"scripts":{"prepack":"yarn verify && yarn build","build":"tsc -p tsconfig.build.json","lint":"yarn tslint --project tsconfig.build.json","test":"jest","verify":"yarn tsc -p tsconfig.json && yarn test && yarn lint","semantic-release":"semantic-release","cz":"git-cz"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"keywords":["typescript","Logger","pino","bunyan","types"],"author":{"name":"Jake Ginnivan"},"license":"MIT","devDependencies":{"@types/jest":"^23.3.10","commitizen":"^3.0.5","cz-conventional-changelog":"^2.1.0","jest":"^23.6.0","semantic-release":"^15.13.2","ts-jest":"^23.10.5","tslint":"^5.12.0","tslint-config-prettier":"^1.17.0","tslint-eslint-rules":"^5.4.0","typescript":"^3.2.2"},"gitHead":"f6b847df9bb42c4234597fcbadd111d2d2d7855d","bugs":{"url":"https://github.com/sevenwestmedia-labs/typescript-log/issues"},"homepage":"https://github.com/sevenwestmedia-labs/typescript-log#readme","_id":"typescript-log@1.0.0","_npmVersion":"6.5.0","_nodeVersion":"10.15.0","_npmUser":{"name":"jakeginnivan","email":"jake@ginnivan.net"},"dist":{"integrity":"sha512-5nk26WPLSYWLSxszk+aMkix+0MmrwEORUdiWm4oSmELGlosPt3siCzcIv4dA/xe360S5vXLhRONEejuvzD+1qQ==","shasum":"b3cd28dc6087d04f8bb5bed41bb741b7f9fed6a4","tarball":"https://registry.npmjs.org/typescript-log/-/typescript-log-1.0.0.tgz","fileCount":17,"unpackedSize":287805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcKZbKCRA9TVsSAnZWagAAkyAP/i66PQL23Bpb2PNPhc1v\nNJZwaiUGqhwOvWYjBOtbDYIQmGryU5sGlYTBWNjiENu+jNYpJ70F4k3ahvXZ\n94GDhfSvV8nzt7bkdbEhzqeIf8H0a+LVNmNDm7ivtoMRmmHzPBtZLdbVbvf5\ntdiC7utj6gCowj9ghOC6nqRoFJEgKQt9JZqCIsg5onrBaxp9Wywhf3YzBs/e\n+58Dj4XHlWPEi8nYBaUi2aLZOdELKDoerLacibUZAmDbMjvAu3PvPOsOjl8w\nhiHVwnmo0TmcGlynke+WumOcTZy572dVkpBrh5iM+7IvTs5vEaFH2nGbtQJM\nxoWkWw0JNXlD+MnHiPllCpruRLj30xYyZL6BLB0EpYOhDn6Bj5jCn9ilH3Ja\nj+4QtjjmzFAKIsvmajdhSMNRkuJDsz1Bw3ysS4dT/+q9sqpA/OumAUvjC7Vq\n2KmngpjnqNLGbxylPYplcOrqDiK8hpJrqefoDtcw2gSaEhoxR8iE88W6UtsR\n1CE+xNfdmR5SONdsnuFTgui2iC1MIkWdpNGpVPwXK2TV6S56quvGr8CA0ngw\nc0QRTMw8bd33QT8Nr8Zd0d0YLM2lSOvI2d+ZN2ZeN0ldHUAvyGqb6LXPdZ6M\nPmuU/L7/7h6qmeDhfvHyFKsj96XBDGKjHFYFYWlCe/TaoFGEivk+/PL0KkdH\nO5P/\r\n=d4lh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLkRrc7PsddPDpLxrlu9L6GhZU8hXNKEYWMYQVSHgzKgIgLIAHHPrns4mIjTxlVLppRYvYvjXm/xUKj2WIomKCWpE="}]},"maintainers":[{"name":"jakeginnivan","email":"jake@ginnivan.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typescript-log_1.0.0_1546229450171_0.38746225867545947"},"_hasShrinkwrap":false},"1.1.0":{"name":"typescript-log","version":"1.1.0","description":"Logger interface with a few simple implementations, interface compatible with pino, bunyan and probably others","main":"dist/cjs/index.js","module":"dist/esm/index.js","es2015":"dist/es2015/index.js","repository":{"type":"git","url":"git+https://github.com/sevenwestmedia-labs/typescript-log.git"},"scripts":{"prepack":"yarn verify && yarn build","build":"yarn build:es2015 && yarn build:esm && yarn build:cjs","build:es2015":"tsc --module es2015 --target es2015 --lib dom,es2015 --outDir dist/es2015 -p tsconfig.build.json","build:esm":"tsc --module es2015 --target es5 --outDir dist/esm -p tsconfig.build.json","build:cjs":"tsc --module commonjs --target es5 --outDir dist/cjs -p tsconfig.build.json","lint":"yarn tslint --project tsconfig.build.json","test":"jest","verify":"yarn tsc -p tsconfig.json && yarn test && yarn lint","semantic-release":"semantic-release","cz":"git-cz"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"keywords":["typescript","Logger","pino","bunyan","types"],"author":{"name":"Jake Ginnivan"},"license":"MIT","devDependencies":{"@types/jest":"^23.3.10","commitizen":"^3.0.5","cz-conventional-changelog":"^2.1.0","jest":"^23.6.0","semantic-release":"^15.13.2","ts-jest":"^23.10.5","tslib":"^1.9.3","tslint":"^5.12.0","tslint-config-prettier":"^1.17.0","tslint-eslint-rules":"^5.4.0","typescript":"^3.2.2"},"peerDependencies":{"tslib":"^1.9.3"},"gitHead":"cb29c9868545d9f629963650f9adcf415149e40d","bugs":{"url":"https://github.com/sevenwestmedia-labs/typescript-log/issues"},"homepage":"https://github.com/sevenwestmedia-labs/typescript-log#readme","_id":"typescript-log@1.1.0","_npmVersion":"6.5.0","_nodeVersion":"10.15.0","_npmUser":{"name":"jakeginnivan","email":"jake@ginnivan.net"},"dist":{"integrity":"sha512-djOXJzoFBm48O4EBgWrP8vPjNBN60DBjgy8jcCY6LguLrL4+K7Y5wY1DjHT2ai1eeA2CwBloPW5Hf3NTF0S7Kg==","shasum":"921e643c2a33c845d70123ae2bccdf684e77f004","tarball":"https://registry.npmjs.org/typescript-log/-/typescript-log-1.1.0.tgz","fileCount":23,"unpackedSize":297573,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNvFMCRA9TVsSAnZWagAA2lwP/0SBwHBmWBeboycLeA7y\nx87A5PfboOM7Nqc/CAZezTJgnvpSIe209B+zq8xU73JvbY9pAroivmyhoqiy\nyIfoK4vLIAsMk75ERcIbMn4a6nuzNjawWiKfJi7d2WW2J9H2sT6MUIynWQND\nOUI/w858DfqYMBlvKzw4PR8+Qb/LrG3ZR4m47tuwWvksUztQ4iCPiFGtb9OC\nUUUY4BBTDYxUjjNJE5U/UTqefvZW27ipPKihkEYfTb9+VKJsBC0Ks4a9JVgS\ntEnYgBKdfYzSwitESXvdk7UQ/56IuEi6kX2bAkzvjFZLwFcHwvXjU6UIko8s\niiE2C3LYnAnrYa230Buw+vSercsulzAcybxZ7id52IfFrukK1WX0Uz+kuoxJ\nVygYPGS2eGATBYVSoS5lmdimLFuEv8ucV0XwKMiPo2TJ2+8jwi0KVXBLcWyT\nT6JULtPKwYVrjFvJxMy1TlSSTbD1VVWSYrqQtypXh2xIj0qK4xEBW0t80/9P\nh89rBdwN3NuoB8MA6D/GzPZrNv9Q6PRkyMu5uaQrQ60xOlL4iXDCaCzA/HGw\ndce2g0r+dTAeIue8vGsGVYrapz17ek7BzYbONR1eUnxoxz62n3/JmCA2VSY9\ndTL1wIDzaC7O3QUs+yv8Qk1NsIkzzbSSSfEmurvGZuN9AhM5ljgpcxDiTGIE\nfk0W\r\n=sF2w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDM66sOv9K5q1Q7sU9dHQ8UeJf1/J/8iy7Y8tLuZ0SEhAiBJMLcHe0oMLTbeTSAHkp/iuNq5FT2d5/N5TN/rHuxv3Q=="}]},"maintainers":[{"name":"jakeginnivan","email":"jake@ginnivan.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typescript-log_1.1.0_1547104587851_0.006746894630780487"},"_hasShrinkwrap":false},"1.1.1":{"name":"typescript-log","version":"1.1.1","description":"Logger interface with a few simple implementations, interface compatible with pino, bunyan and probably others","main":"dist/cjs/index.js","module":"dist/esm/index.js","sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/sevenwestmedia-labs/typescript-log.git"},"scripts":{"prepack":"yarn verify && yarn build","build":"yarn build:esm && yarn build:cjs","build:esm":"tsc --module es2015 --target es5 --outDir dist/esm -p tsconfig.build.json","build:cjs":"tsc --module commonjs --target es5 --outDir dist/cjs -p tsconfig.build.json","lint":"eslint --ext .js,.ts .","test":"jest","verify":"yarn tsc -p tsconfig.json && yarn test && yarn lint"},"keywords":["typescript","Logger","pino","bunyan","types"],"author":{"name":"Jake Ginnivan"},"license":"MIT","devDependencies":{"@types/jest":"^24.0.18","@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^2.0.0","eslint":"^6.2.2","eslint-config-prettier":"^6.1.0","eslint-config-wanews-base":"^2.0.1","jest":"^24.9.0","ts-jest":"^24.0.2","tslib":"^1.10.0","typescript":"^3.6.2"},"peerDependencies":{"tslib":"^1.10.0"},"gitHead":"4bd6d0d788b3ea3d28a3d4a394fcc4f11f9f985e","bugs":{"url":"https://github.com/sevenwestmedia-labs/typescript-log/issues"},"homepage":"https://github.com/sevenwestmedia-labs/typescript-log#readme","_id":"typescript-log@1.1.1","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-BEP3PcTcaKTDOy/36qcoF+mgVfTjz70E0Z4+fxt+WEDsNSMXbb8gDJU7W16AWnjqaVY9naMm5WyLbqQ5cb9PoA==","shasum":"36952d41d135a92b24f0ed87c3ea8f49dd7aeb8e","tarball":"https://registry.npmjs.org/typescript-log/-/typescript-log-1.1.1.tgz","fileCount":20,"unpackedSize":23672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdZ0bTCRA9TVsSAnZWagAAHcQP/2dOOHxRxx4J2qAdUaQC\nkKbxR2ynnFzKzdtX9PmLzcZJVaesIYtOgxiV0FIRCBhY68px348yQa2Y9m/x\nqQ8HYN0YkFKBNQJfjX8oGUA/tnW0THKvyjgEnFOadmumOZ+6S5bn7rQslFhD\nlkrkp3BB9KF6sMpQAPXZJ6hylA9nJwL8HeXUD6JroIupqD+tKp0iz0pRM1Nj\n+HNm54PYXRtCLZnAvdqFUFxHa/+PjjJ5rzQFxlBwvfshBPf/rOR4NO57as+4\nnvznr5/YKjV5XyWTOP1DvE1sFDXTxxrpDEACdfPpyotBuqRidJJH/+9b8Cwl\nGWaeVFjWZx3XdImU99vhm13H9FVZ0HHYyTP7ISOmLysvr7d6pH5NWCpw57iA\n5AE4NRNveEWBBDGNorUMpu4NEadb2VB/rCaB74Cc4EPhSj6cBbCM+37i6Vbd\nve1fHSKg2EmuQNFcEabCb8ORJrkyHd2RYcSk5s3zHi3zA2mcG3CyUxdHxGHv\nFAtwIX2WwFTz8j8geEDo2wYtuXwyE/pN4gpFAwrRJueGxMi0IF/JZFX4rVWf\nHRxNUUPQCg5fzgb2FY4sWhq7G1dVQRb/IeECy2nAo0ekQLGmxy7rdtQEkgT6\n3S3HfElL5vjHxgRQJwbxc8j+4/+bBlq4pxbV4nYk+qSm76pSDOCdsu0eNpm+\nIu4a\r\n=ZYya\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNlBBJ+5u8vMqD3Kn4QEeAHHMwcrA9FAn6OB0kN3oEJQIhAP9LhDGDycTtbtTy7hA1mTZ2UhnGR2isH3ISn8oc3cJ9"}]},"maintainers":[{"name":"jakeginnivan","email":"jake@ginnivan.net"}],"_npmUser":{"name":"jakeginnivan","email":"jake@ginnivan.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typescript-log_1.1.1_1567049427190_0.9226129414192952"},"_hasShrinkwrap":false},"2.0.0":{"name":"typescript-log","version":"2.0.0","description":"Logger interface with a few simple implementations, interface compatible with pino, bunyan and probably others","main":"dist/cjs/index.js","module":"dist/esm/index.js","sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/sevenwestmedia-labs/typescript-log.git"},"scripts":{"prepack":"yarn verify && yarn build","build":"yarn build:esm && yarn build:cjs","build:esm":"tsc --module es2015 --target es5 --outDir dist/esm -p tsconfig.build.json","build:cjs":"tsc --module commonjs --target es5 --outDir dist/cjs -p tsconfig.build.json","lint":"eslint --ext .js,.ts .","test":"jest","verify":"yarn tsc -p tsconfig.json && yarn test && yarn lint","changeset":"changeset","release":"yarn verify && changeset publish"},"keywords":["typescript","Logger","pino","bunyan","types"],"author":{"name":"Jake Ginnivan"},"license":"MIT","devDependencies":{"@changesets/cli":"^2.9.1","@types/jest":"^26.0.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","eslint":"^7.2.0","eslint-config-prettier":"^6.11.0","eslint-config-wanews-base":"^2.2.0","jest":"^26.0.1","ts-jest":"^26.1.0","tslib":"^2.0.0","typescript":"^3.9.5"},"peerDependencies":{"tslib":"^2.0.0"},"gitHead":"abc06a3384ba7c0609c9a168a94885e45a9bc5ea","bugs":{"url":"https://github.com/sevenwestmedia-labs/typescript-log/issues"},"homepage":"https://github.com/sevenwestmedia-labs/typescript-log#readme","_id":"typescript-log@2.0.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-TyW8lmURJSo0yjBovEhESpah3haDYBgsnQRocBF4MQSDJSYs/DOmhjo2cpSrGyvD9OaX++dbbonq9TkIQeA+Bw==","shasum":"d1b465e6c9e0bacf547d02e813d56f69fdf66af3","tarball":"https://registry.npmjs.org/typescript-log/-/typescript-log-2.0.0.tgz","fileCount":24,"unpackedSize":24079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe61oKCRA9TVsSAnZWagAALycP+wWOhMGnPFSfvGY3zc/u\nVd5YS0Lnw3EREQn+/ErrmU3hpbe/hadKYOHoRMB44UvyyIKakl9ogap/RSjn\nr7NBUqn01PQnWHz5Vqr+7ESVewnHRSfICrbhmX+2zc3QnbAEuWwtubvmyC25\negmd1oob/jFkjAS2zyxU2U6gUa4qlFpK0IPpbVkubqKqMSf69K9rZMa+hAPf\nHcE6+q3pHyPEenuk9Ydf1nQ6cb3WDUIKBgl/pIKP/864md7GqZ0o30pySu9A\nZqAxathDXptVcFgEVY5UJbdQfYuO2ze74hEuUeSMtLYj6yZgwE4zhK3K9ZmH\npEeUbpYTupGUhEXVZ3Wrla/U+3VsoFX2QS+JhlYSn2+KS+NudRx9ZdD2tVTp\nUqEFChMCh1n2B/eMOVRBAKGqDeuaHU6RMUYGIpB3Gyy71RXjPT+ORGBfA9r9\nw289bvFQm9FFS+O+qTfmUxd1FGhN7xgfNKk84Or3c4mCfvZeMP4X3uUDcXv9\nPNDQC+Xe2rMQlwG13BO0aJWqmcWcXtJHROoWy/DcO85TLC77dK2o3QCvys6q\nYbz1mJq47BpVhcdPFn4+wx2dS2OIG1OJUUeC6kZxyuKw7hBzqELHHB0IKno3\nLs/T8Vq7La47sAgn1N/u+UeMdYqYnoU0cMj53t06AoQYOT0sYZqbHGJCzC28\no9I4\r\n=ZVRO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEHXuWSstXno9KBb1xSGzlPWmaMCJGrZsBlxF2phiPa+AiEA+dU6oTHFgDcdDA6BjFGxfStI6TRIdhyJ071qbgHiAKc="}]},"maintainers":[{"name":"jakeginnivan","email":"jake@ginnivan.net"}],"_npmUser":{"name":"jakeginnivan","email":"jake@ginnivan.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typescript-log_2.0.0_1592482314183_0.37214321757084745"},"_hasShrinkwrap":false}},"time":{"created":"2018-12-31T04:10:50.170Z","1.0.0":"2018-12-31T04:10:50.455Z","modified":"2022-05-22T13:45:51.244Z","1.1.0":"2019-01-10T07:16:27.932Z","1.1.1":"2019-08-29T03:30:27.327Z","2.0.0":"2020-06-18T12:11:54.305Z"},"maintainers":[{"name":"jakeginnivan","email":"jake@ginnivan.net"}],"description":"Logger interface with a few simple implementations, interface compatible with pino, bunyan and probably others","homepage":"https://github.com/sevenwestmedia-labs/typescript-log#readme","keywords":["typescript","Logger","pino","bunyan","types"],"repository":{"type":"git","url":"git+https://github.com/sevenwestmedia-labs/typescript-log.git"},"author":{"name":"Jake Ginnivan"},"bugs":{"url":"https://github.com/sevenwestmedia-labs/typescript-log/issues"},"license":"MIT","readme":"# TypeScript abstract logger\n\n![](https://img.shields.io/npm/v/typescript-log.svg)\n\nUseful for libraries which want to enable the consuming application to provide a logger. Our projects ended up duplicating the same logging interface and consoleLogger and noopLogger's.\n\nCompatible with universal applications (works in browser and node)\n\n## Usage\n\n```ts\nimport pino from 'pino'\nimport { consoleLogger, noopLogger, Logger } from 'typescript-log'\n\nconst pinoLogger: Logger = pino({})\n\nconst logsNothingLogger: Logger = noopLogger()\nconst logsToConsoleLogger: Logger = consoleLogger(\n    /* optional, warn default */ 'error',\n)\n```\n\n## References\n\nSimilar to https://github.com/kallaspriit/ts-log but uses `log(obj, msg)` format for the interface\n","readmeFilename":"README.md"}