{"name":"inversify-logging","version":"0.1.0","dependencies":{"lodash":"~4.13.1","reflect-metadata":"0.1.8"},"devDependencies":{"@types/expect.js":"~0.3.29","@types/lodash":"4.14.54","@types/mocha":"~2.2.33","@types/node":"~6.0.52","@types/socket.io":"~1.4.31","expect.js":"~0.3.1","typemoq":"~1.2.1"},"peerDependencies":{"inversify":"^4.0.0"},"main":"dist","typings":"dist","gitHead":"139973495ee41f004af8913a59d8e0cf5c4192e9","description":"Contextual logging for [inversify](https://github.com/inversify/InversifyJS) powered applications.","_id":"inversify-logging@0.1.0","scripts":{},"_shasum":"1950daa10a24d176c8db232eb4c909d1ff38f150","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.4","_npmUser":{"name":"tierratelematics","email":"sysadmin@tierratelematics.com"},"dist":{"shasum":"1950daa10a24d176c8db232eb4c909d1ff38f150","tarball":"http://registry-npm.ywwl.com/inversify-logging/download/inversify-logging-0.1.0.tgz","integrity":"sha512-4mq9Vx04tQ2b3/pr4q6sb2OBZYwKrZ67gnbLzyV0lahbZumTmd43kHjfu1xvdSNqKMbW7k3gSA2b9dMPsKfI+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFMrG+OaETnRekQf7X3pFlaxPfUUtz0gXIY3BoD+UlnAIhANefcaZQrmoKUphSkz8oN38De9eD6O7NgYFI9aoN0Qnw"}],"size":4964,"noattachment":false,"key":"/inversify-logging/-/inversify-logging-0.1.0.tgz"},"maintainers":[{"name":"tierratelematics","email":"sysadmin@tierratelematics.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inversify-logging-0.1.0.tgz_1508400918698_0.6781995689962059"},"directories":{},"readme":"# Inversify logging\n\nContextual logging for [inversify](https://github.com/inversify/InversifyJS) powered applications.\n\n## Installation\n\n`\n$ npm i inversify-logging\n`\n\n## Usage\n\nActivate the logger for an inversify container:\n\n```typescript\nimport {activateLogging} from \"inversify-logging\";\n\nactivateLogging(inversifyContainer);\n```\n\nAnd log!\n\n```typescript\nimport {inject} from \"inversify\";\nimport {ILogger, LoggingContext} from \"inversify-logging\";\n\n@LoggingContext(\"TestClass\")\nclass TestClass {\n\n    @inject(\"ILogger\") logger: ILogger; //Currently only logger injection on properties is supported\n\n    constructor() {\n        logger.info(\"Logs!\"); // This outputs [TestClass] Logs!\n    }\n}\n```\n\n\n## License\n\nCopyright 2016 Tierra SpA\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","publish_time":1508400921571,"_cnpm_publish_time":1508400921571,"dist-tags":{"latest":"0.2.1"}}