{"_id":"99voices_npm_logger","_rev":"5-7f258e3f10dfda4be852bb03fef8f143","name":"99voices_npm_logger","description":"A logging package","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"99voices_npm_logger","version":"1.0.0","description":"A logging package","main":"index.js","repository":{"type":"git","url":"https://github.com/designtesbrot/99voices_npm_logger"},"author":{"name":"caspar.bauer0@gmail.com"},"license":"MIT","_id":"99voices_npm_logger@1.0.0","dist":{"shasum":"c7bd109f660856ab05ae536955d7fe855867231f","tarball":"https://registry.npmjs.org/99voices_npm_logger/-/99voices_npm_logger-1.0.0.tgz","integrity":"sha512-sVlHsx7AkfKGx3YXehJwA1FF0J1l08MzLaFXadVlBYPDytmbsidIm0CCne2w8l5CZu2ZAxs07U5ytVJizIDC8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDmB9L2aI+nK5iaUMP7iHqtNcxk+PSDAGnL/mGGZUlMaAiBvWqknPx0jJ7EYSGg55Dgzp0knRFFewN5WBJlwsWb4ow=="}]},"maintainers":[{"name":"designtesbrot","email":"caspar.bauer0@gmail.com"}],"_npmUser":{"name":"designtesbrot","email":"caspar.bauer0@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/99voices_npm_logger-1.0.0.tgz_1514367031563_0.8978991038165987"}},"1.0.1":{"name":"99voices_npm_logger","version":"1.0.1","description":"A logging package","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/designtesbrot/99voices_npm_logger"},"author":{"name":"caspar.bauer0@gmail.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0"},"scripts":{"start":"./node_modules/.bin/babel --watch --out-dir ./lib ./src"},"dependencies":{"winston":"^2.4.0"},"_id":"99voices_npm_logger@1.0.1","dist":{"shasum":"0adb9945de2c309490765505fdd66a9ec03b5744","tarball":"https://registry.npmjs.org/99voices_npm_logger/-/99voices_npm_logger-1.0.1.tgz","integrity":"sha512-G1gV0kSmU24KQ5h1nzqZw40opguM4jKCqxD4tUtSP/RUsthV27j64VF3MlTJqe7YbITTcTr1u2jeSU5UqE3/cg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGMuSbnLCduSc8WylDxqFg7oZrCodKvs4iEDdOCwO2NMAiBxqkdMtNDRXKxo+2d3eXAH2TdsCqTF/mdbQDoG0hEmkQ=="}]},"maintainers":[{"name":"designtesbrot","email":"caspar.bauer0@gmail.com"}],"_npmUser":{"name":"designtesbrot","email":"caspar.bauer0@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/99voices_npm_logger-1.0.1.tgz_1514369670104_0.6355259572155774"}},"1.0.3":{"name":"99voices_npm_logger","version":"1.0.3","description":"A logging package","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/designtesbrot/99voices_npm_logger"},"author":{"name":"caspar.bauer0@gmail.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-preset-env":"^1.6.1"},"scripts":{"start":"./node_modules/.bin/babel --watch --out-dir ./dist ./src"},"dependencies":{"winston":"^2.4.0"},"_id":"99voices_npm_logger@1.0.3","dist":{"shasum":"0b0c222748c868647348c174ca7d496062b22a76","tarball":"https://registry.npmjs.org/99voices_npm_logger/-/99voices_npm_logger-1.0.3.tgz","integrity":"sha512-+f8jC5wAOaalw8SFZ/dmZnjF7Wupp51Wc8KTAV/LJiyn0MVyPegdVb8eh4vZ3uyqvKUSde4H/F7FQR9iByGi5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE8MYpQ75zW0R/q+VERsB8L2kDaPhpB1mrnIAD1Pmcd+AiEAyNjwFgSoT2MqdBeC3W5+IAklX2isOvdzMZkiyN0P4yk="}]},"maintainers":[{"name":"designtesbrot","email":"caspar.bauer0@gmail.com"}],"_npmUser":{"name":"designtesbrot","email":"caspar.bauer0@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/99voices_npm_logger-1.0.3.tgz_1514371780769_0.7749994897749275"}},"1.0.4":{"name":"99voices_npm_logger","version":"1.0.4","description":"A logging package","main":"dist/index.js","repository":{"type":"git","url":"https://github.com/designtesbrot/99voices_npm_logger"},"author":{"name":"caspar.bauer0@gmail.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-preset-env":"^1.6.1"},"scripts":{"start":"./node_modules/.bin/babel --watch --out-dir ./dist ./src"},"dependencies":{"winston":"^2.4.0"},"_id":"99voices_npm_logger@1.0.4","dist":{"shasum":"406f31192aca80bd6347bf21fb6c522a21b4408a","tarball":"https://registry.npmjs.org/99voices_npm_logger/-/99voices_npm_logger-1.0.4.tgz","integrity":"sha512-6e5J93681YUO66K6Mxm00yE1Qpz1rt0wDFut0Jjtr+qIy+XuHB9gzRcIXpqhN+LDVIBjN1JXJ6GELsef4SCEmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5OmiCIsvCf9UvAhTu91ZQbUxxeh76nonVvG0oiauEpgIhANnNKpSQlM836+SjVfjc7SEul5gpe0ytAwacVkqzNfX2"}]},"maintainers":[{"name":"designtesbrot","email":"caspar.bauer0@gmail.com"}],"_npmUser":{"name":"designtesbrot","email":"caspar.bauer0@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/99voices_npm_logger-1.0.4.tgz_1514372912309_0.2035695561207831"}}},"readme":"# Logger\n\nThis package contains a logger. It is build on, and defacto returns an instance\nof [winston](https://www.npmjs.com/package/winston). For an in depth Overview\nof the api of the object returned by this package, see the documentation\nof [winston](https://www.npmjs.com/package/winston).\n\n## Development\n\nThis package is developed within a docker container. Run `scripts/build.sh` and\n`scripts/run.sh` to obtain the development environment. For every yarn operation\nexec into the container `docker exec -it ${container_id} /bin/ash` and run the\nopreation inside `yarn ...`. The container watches for file changes on the\nsources and automatically rebuilds the distribution code. Before running `yarn publish`\nbe sure to run `yarn login`.\n\n## Usage\n\nThis package contains and returns a singleton. Meaning that you can require the\nfile wherever you want to, and you will always obtain the same logging instance.\nIn order for this to work it is vital that the logger instance is first initialized.\nThis is a synchronous process and done like this:\n\n```\nimport Config from '99voices_npm_config';\nimport Logger from '99voices_npm_logger';\n\nlet config = Config();\nlet Logger = Logger({config});\n```\n### logWithRequest\n\nThis package adds a custom method `logWithRequest(level,request,message,data)` to the logger instance. It is\nuseful when logging during web processes. It accepts the following options:\n\n* **level** String - The log level. See [winston](https://www.npmjs.com/package/winston) for more info\n* **request** Express.request - The request that this log relates to\n* **message** String - Your message. `logWithRequest` will reformat the message and add request meta data to it\n* **data** Object - An object you want to log. See [winston](https://www.npmjs.com/package/winston) for more info\n","maintainers":[{"name":"designtesbrot","email":"caspar.bauer0@gmail.com"}],"time":{"modified":"2022-06-12T14:09:00.927Z","created":"2017-12-27T09:30:32.536Z","1.0.0":"2017-12-27T09:30:32.536Z","1.0.1":"2017-12-27T10:14:31.052Z","1.0.3":"2017-12-27T10:49:41.620Z","1.0.4":"2017-12-27T11:08:33.245Z"},"repository":{"type":"git","url":"https://github.com/designtesbrot/99voices_npm_logger"},"author":{"name":"caspar.bauer0@gmail.com"},"license":"MIT","readmeFilename":"README.md"}