{"_id":"@aantthony/logger","_rev":"4-d0c3bd1461cc3e579edaf380fdd63a27","name":"@aantthony/logger","description":"Simple console.log replacement","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.0":{"name":"@aantthony/logger","version":"1.1.0","description":"Simple console.log replacement","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"jshintConfig":{"eqeqeq":true,"newcap":true,"undef":true,"node":true},"repository":{"type":"git","url":"git+https://github.com/aantthony/logger.git"},"author":{"name":"Anthony Foster"},"license":"MIT","bugs":{"url":"https://github.com/aantthony/logger/issues"},"homepage":"https://github.com/aantthony/logger#readme","dependencies":{"chalk":"^1.1.1"},"gitHead":"35b3492b8f68068212062db1f98dd1e510fa1057","_id":"@aantthony/logger@1.1.0","_shasum":"396a633acae02cdc176e5ea348232cd0d8678a35","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.4.0","_npmUser":{"name":"aantthony","email":"hi@af.id.au"},"maintainers":[{"name":"aantthony","email":"hi@af.id.au"}],"dist":{"shasum":"396a633acae02cdc176e5ea348232cd0d8678a35","tarball":"https://registry.npmjs.org/@aantthony/logger/-/logger-1.1.0.tgz","integrity":"sha512-c7w+RjW6+8HhI5QvPdCp2tHoHqCdU/P4aPROozs1Ed7jtW4mWzG2CSquiX4y/tzxUTzVmXlnlt1b1dQSj29PZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOYZfsDjvlLD3HFbXEcQKUbv4PXe1rLr+blfte9hIpNgIgGQfOvKTJ3m1zFIck6p1NUqtGSSkKfAgM2Z71QjCBWSE="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/logger-1.1.0.tgz_1457004799452_0.03711574780754745"}},"1.1.1":{"name":"@aantthony/logger","version":"1.1.1","description":"Simple console.log replacement","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"jshintConfig":{"eqeqeq":true,"newcap":true,"undef":true,"node":true},"repository":{"type":"git","url":"git+https://github.com/aantthony/logger.git"},"author":{"name":"Anthony Foster"},"license":"MIT","bugs":{"url":"https://github.com/aantthony/logger/issues"},"homepage":"https://github.com/aantthony/logger#readme","dependencies":{"chalk":"^1.1.1"},"gitHead":"1a0d71b6f70a4c34daa10cf6aeeb20bcace4d0b0","_id":"@aantthony/logger@1.1.1","_shasum":"f07b15c2f3b7964ce192a0f7bc089d9c0a8489c9","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.4.0","_npmUser":{"name":"aantthony","email":"hi@af.id.au"},"maintainers":[{"name":"aantthony","email":"hi@af.id.au"}],"dist":{"shasum":"f07b15c2f3b7964ce192a0f7bc089d9c0a8489c9","tarball":"https://registry.npmjs.org/@aantthony/logger/-/logger-1.1.1.tgz","integrity":"sha512-+WsVj0v25VguzmtYYWTgf+9QXi2qcfz0t2zt6SoZfM2dj4MbSuJXgixtDmgIPiKvUzxnOSGs75NehIKrZhEpJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBgSmfTh64BVR0VeoIDFj532cEBEz7if6sAkmWHiSaQpAiEAkLa9S5temOHUMm7Qv5ZqrovtUTL7KrxuZVb0G9GFkG0="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/logger-1.1.1.tgz_1457005060419_0.043754867278039455"}}},"readme":"# logger\n\nSimple `console.log` replacement.\n\n`npm install --save @aantthony/logger`\n\n## Usage\n```js\n\nvar log = require('logger')('Login');\n\n// 9720ms Login: Hello World!\nlog.info('Hello World!');\n```\n\n## Disable output\n```js\nrequire('logger').setOutputStream(null);\n```\n\n## Collect log data:\n\n```js\nrequire('logger').on('data', function (payload) {\n  // { component: 'Login',\n  // time: Thu Jun 18 2015 23:09:29 GMT+1000 (AEST),\n  // hostname: 'Anthony.local',\n  // level: 'info',\n  // message: 'Hello World!',\n  // pid: 46297,\n  // data: undefined }\n  console.log(payload);\n});\n```\n","maintainers":[{"name":"aantthony","email":"hi@af.id.au"}],"time":{"modified":"2022-06-12T14:13:31.367Z","created":"2016-03-03T11:33:20.349Z","1.1.0":"2016-03-03T11:33:20.349Z","1.1.1":"2016-03-03T11:37:41.414Z"},"homepage":"https://github.com/aantthony/logger#readme","repository":{"type":"git","url":"git+https://github.com/aantthony/logger.git"},"author":{"name":"Anthony Foster"},"bugs":{"url":"https://github.com/aantthony/logger/issues"},"license":"MIT","readmeFilename":"README.md"}