{"_id":"lawgs","_rev":"15-def49580a71e562236ab61c219bdaa79","name":"lawgs","description":"AWS CloudWatch Logs made easy","dist-tags":{"latest":"1.0.4"},"versions":{"0.0.0":{"name":"lawgs","version":"0.0.0","description":"CloudWatch Logs made easy","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/mentum/lawgs.git"},"keywords":["aws","cloudwatch","logs","logging","cloudwatchlogs","amazon"],"author":{"name":"mentum"},"license":"MIT","bugs":{"url":"https://github.com/mentum/lawgs/issues"},"homepage":"https://github.com/mentum/lawgs","dependencies":{"aws-sdk":"^2.1.8","extend":"^2.0.0","linq":"^3.0.4-beta","q":"^1.1.2","rx":"^2.3.24"},"gitHead":"66db8a1f862ec1115553f46374ad2327d047be9d","_id":"lawgs@0.0.0","_shasum":"7d7dd0bd5a16d5ac1af9391fe08b22b34dc2e863","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"slvnperron","email":"slvn.perron@gmail.com"},"maintainers":[{"name":"slvnperron","email":"slvn.perron@gmail.com"}],"dist":{"shasum":"7d7dd0bd5a16d5ac1af9391fe08b22b34dc2e863","tarball":"https://registry.npmjs.org/lawgs/-/lawgs-0.0.0.tgz","integrity":"sha512-CaR12IDxMGut9xq29hnhcCZEvV2PAoo2nPeEam8g9jXTcxp2kIdHgcgiRayIucIfV94wWTby1GdEqT3CO0qRkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8lc6q8Efni9dUzrjy3+FKKSeGfcgNFG7kWSlGjzYx6AIgGQQUQLCxIgpiOUORFp6bp3mJJUD+kp0wNio6AOCB0DQ="}]}},"1.0.0":{"name":"lawgs","version":"1.0.0","description":"AWS CloudWatch Logs made easy","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/mentum/lawgs.git"},"keywords":["aws","cloudwatch","logs","logging","cloudwatchlogs","amazon"],"author":{"name":"mentum"},"license":"MIT","bugs":{"url":"https://github.com/mentum/lawgs/issues"},"homepage":"https://github.com/mentum/lawgs","dependencies":{"aws-sdk":"^2.1.8","extend":"^2.0.0","linq":"^3.0.4-beta","q":"^1.1.2","rx":"^2.3.24"},"gitHead":"bdd4b6777f8d85140a2373a5550a1ff51e38116d","_id":"lawgs@1.0.0","_shasum":"70a1df5a9e60dd5b5adb7b27905d4ba168c979b6","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"slvnperron","email":"slvn.perron@gmail.com"},"maintainers":[{"name":"slvnperron","email":"slvn.perron@gmail.com"}],"dist":{"shasum":"70a1df5a9e60dd5b5adb7b27905d4ba168c979b6","tarball":"https://registry.npmjs.org/lawgs/-/lawgs-1.0.0.tgz","integrity":"sha512-TJXwYsm9ArSyzOQzpQuUmSzwr9B7L/fTZfSnZCWqv2urC+ZLzwcCeCvPn+ZPWPj448hltSk9uvDCTuBxB6UHQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE29tzK15bqklrdB43N9i6wlNwSCp0JTk1bYeSMRe5OhAiBvRY96DBA9vwYoZA8oVtK9TctHu3HRHGH8YErZI+ScfQ=="}]}},"1.0.1":{"name":"lawgs","version":"1.0.1","description":"AWS CloudWatch Logs made easy","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/mentum/lawgs.git"},"keywords":["aws","cloudwatch","logs","logging","cloudwatchlogs","amazon"],"author":{"name":"mentum"},"license":"MIT","bugs":{"url":"https://github.com/mentum/lawgs/issues"},"homepage":"https://github.com/mentum/lawgs","dependencies":{"aws-sdk":"^2.1.8","extend":"^2.0.0","linq":"^3.0.4-beta","q":"^1.1.2","rx":"^2.3.24"},"gitHead":"1cacc502219526bfaef94fcd3a4284f2341d42df","_id":"lawgs@1.0.1","_shasum":"725e517ed05bcf406643bf935cd9fd1a3bcd5fb0","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"slvnperron","email":"slvn.perron@gmail.com"},"maintainers":[{"name":"slvnperron","email":"slvn.perron@gmail.com"}],"dist":{"shasum":"725e517ed05bcf406643bf935cd9fd1a3bcd5fb0","tarball":"https://registry.npmjs.org/lawgs/-/lawgs-1.0.1.tgz","integrity":"sha512-1qbyLviW482AxyW/Rp99NrZ1H/05UfT2AfZiU1UxeJVYU3pq3ziOO1SuaAhNXcHih06USQryoXxAoVQl/pKnuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5+UDvXvu9/6WLI5DGOZxTclrFpileHHZaz9NjszBdVwIhAMgfEpODsLdGcofsgMHzLW3WGxR1efJ0iF9S2dDQq8YB"}]}},"1.0.2":{"name":"lawgs","version":"1.0.2","description":"AWS CloudWatch Logs made easy","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/mentum/lawgs.git"},"keywords":["aws","cloudwatch","logs","logging","cloudwatchlogs","amazon"],"author":{"name":"mentum"},"license":"MIT","bugs":{"url":"https://github.com/mentum/lawgs/issues"},"homepage":"https://github.com/mentum/lawgs","dependencies":{"aws-sdk":"^2.1.8","extend":"^2.0.0","linq":"^3.0.4-beta","q":"^1.1.2","rx":"^2.3.24"},"gitHead":"5892012e44265ace38e3cff3fa9ba15b276f2c11","_id":"lawgs@1.0.2","_shasum":"64fe355bc345b9f4c66a0acbf17525b42f8951e1","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"slvnperron","email":"slvn.perron@gmail.com"},"maintainers":[{"name":"slvnperron","email":"slvn.perron@gmail.com"}],"dist":{"shasum":"64fe355bc345b9f4c66a0acbf17525b42f8951e1","tarball":"https://registry.npmjs.org/lawgs/-/lawgs-1.0.2.tgz","integrity":"sha512-8F1LD+Gdp/VrkoH7YSJp65tPTPA5mpjBUjC6WFlIxLAW9SH2qKnz1eK4SgMjVnQeiOaG2pSiKWvTegG88O1phg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDneaP1MB7MzQ8qQfulAk/v+VKTh6mLESFjRkUqLxZehwIgHxJs/EnlHein0f8KNZm00pIBp6gMtlilcFIPEvQJDEg="}]}},"1.0.3":{"name":"lawgs","version":"1.0.3","description":"AWS CloudWatch Logs made easy","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mentum/lawgs.git"},"keywords":["aws","cloudwatch","logs","logging","cloudwatchlogs","amazon"],"author":{"name":"mentum"},"license":"MIT","bugs":{"url":"https://github.com/mentum/lawgs/issues"},"homepage":"https://github.com/mentum/lawgs","dependencies":{"aws-sdk":"^2.1.8","extend":"^2.0.0","linq":"^3.0.4-beta","q":"^1.1.2","rx":"^2.3.24"},"gitHead":"b8ab45181cd0f88c66efe4d5037d4848869ed98c","_id":"lawgs@1.0.3","_shasum":"bc8ccc89eadcc689e1121b7dce6da53366514a6a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"slvnperron","email":"slvn.perron@gmail.com"},"dist":{"shasum":"bc8ccc89eadcc689e1121b7dce6da53366514a6a","tarball":"https://registry.npmjs.org/lawgs/-/lawgs-1.0.3.tgz","integrity":"sha512-UL+1Fr3fsh0uefmfXzx1ejx/kmEWdFdvd0tbpuOAIucgfvXmjvI44KvCZsXK8mY6Q1VIdUWMsmgQUwcGOWOGpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkHjvU3rkMAK6cbX6CJ1TxmTWHYQJXukbeBI6p42bnogIgd9auhS3gAIxG0lem6aqExVfe4mh3x+EN7i+RC58+vHg="}]},"maintainers":[{"name":"slvnperron","email":"slvn.perron@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lawgs-1.0.3.tgz_1485613576240_0.44273741473443806"}},"1.0.4":{"name":"lawgs","version":"1.0.4","description":"AWS CloudWatch Logs made easy","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mentum/lawgs.git"},"keywords":["aws","cloudwatch","logs","logging","cloudwatchlogs","amazon"],"author":{"name":"mentum"},"license":"MIT","bugs":{"url":"https://github.com/mentum/lawgs/issues"},"homepage":"https://github.com/mentum/lawgs","dependencies":{"aws-sdk":"^2.1.8","extend":"^2.0.0","linq":"^3.0.4-beta","q":"^1.1.2","rx":"^2.3.24"},"gitHead":"02e5a04cfc6a643345e6dd09194f3029a51633be","_id":"lawgs@1.0.4","_shasum":"2c210849ac028ec0639b67ba73c17c1968f2e024","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"slvnperron","email":"slvn.perron@gmail.com"},"dist":{"shasum":"2c210849ac028ec0639b67ba73c17c1968f2e024","tarball":"https://registry.npmjs.org/lawgs/-/lawgs-1.0.4.tgz","integrity":"sha512-QF9MjNYJg0nWPSVkSgaNzrTOSdpKMEuDwno80Zl2dCc1Fu45bHCP8USVZ2PSz5pNzi/8WyiipaLdqpKSVD1jGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWYTahGeFcVu841TJoKzUG+sn5RZmX1GhA0skrs37Y/gIgFncZQdi+lamDYCDw671ifbMRYptd6/ZD29jfTe+Cxq4="}]},"maintainers":[{"name":"slvnperron","email":"slvn.perron@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/lawgs-1.0.4.tgz_1488241879604_0.46831867354921997"}}},"readme":"![logo](./logo50x50.png) Lawgs\n==============================\n\nNodejs logging to CloudWatch Logs made easy\n\n## Features\n- Creates Log Groups automatically\n- Creates Log Streams automatically\n- Periodic upload\n- Automatic log batching\n- JSON logging support\n- logger instances are shared across modules\n\n## Get it\n``` npm install lawgs ```\n\n## How to use it\n\nThe only required configurations are the AWS configurations.\n\n```js\nvar lawgs = require('./index');\n\nlawgs.config({\n\taws: {\n\t\taccessKeyId: '********', /* Optional if credentials are set in ~/.aws/credentials */\n\t\tsecretAccessKey: '******', /* Optional */\n\t\tregion: 'us-east-1' /* Required */\n\t}\n});\n```\n\nIf you are using roles, you will need the following roles:\n- logs:DescribeLogGroups\n- logs:DescribeLogStreams\n- logs:CreateLogGroup\n- logs:CreateLogStream\n- logs:PutLogEvents\n\nSimply create your logger and you are ready to go.\n\n```js\nvar logger  = lawgs.getOrCreate('SuperbowlLogs'); /* LogGroup */\nlogger.log('touchdown', { team: 'Patriots', weight: 7 });\n```\n\n## Example\nSee ```example.js``` for a full working example.\n\nRunning the example, you get the following output:\n```\nDisposed subscription\nResubscribed\nSuperbowlLogs >> uploadQueuedLogs triggered with  2  logs\nChecking if log group exists: SuperbowlLogs\nCreating log group: SuperbowlLogs\nChecking if log stream exists: error\nChecking if log stream exists: touchdown\nCreating log stream: error\nCreating log stream: touchdown\nUploading logs\nUploading logs\nLogs uploaded\nLogs uploaded\n```\n\n## Roadmap\n- S3 logs archiving\n\n## Contributing\nFeel free to open issues and open pull requests.\n\n## Related projects\n[Lambdaws](https://github.com/mentum/lambdaws) (AWS Lambda Wrapper)\n\n[Superbowl Notifier](https://github.com/mentum/superbowl_notifier) (Used Lawgs to log high-volume tweets)\n","maintainers":[{"name":"slvnperron","email":"slvn.perron@gmail.com"}],"time":{"modified":"2022-06-19T10:51:42.119Z","created":"2015-01-28T20:35:40.295Z","0.0.0":"2015-01-28T20:35:40.295Z","1.0.0":"2015-02-03T17:38:23.574Z","1.0.1":"2015-02-03T17:47:44.670Z","1.0.2":"2015-02-03T19:47:26.474Z","1.0.3":"2017-01-28T14:26:18.022Z","1.0.4":"2017-02-28T00:31:20.206Z"},"homepage":"https://github.com/mentum/lawgs","keywords":["aws","cloudwatch","logs","logging","cloudwatchlogs","amazon"],"repository":{"type":"git","url":"git+https://github.com/mentum/lawgs.git"},"author":{"name":"mentum"},"bugs":{"url":"https://github.com/mentum/lawgs/issues"},"license":"MIT","readmeFilename":"README.md","users":{"slvnperron":true,"timdp":true,"wstowersguestdna":true}}