{"_id":"@aptoma/lambda-papertrail-logger","_rev":"5-a559a9e82372fa047a58b789ff0f691f","name":"@aptoma/lambda-papertrail-logger","description":"A logger to send AWS Lambda logs to Papertrail","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.2":{"name":"@aptoma/lambda-papertrail-logger","version":"1.0.2","description":"A logger to send AWS Lambda logs to Papertrail","author":{"name":"Gunnar Lium","email":"gunnar@aptoma.com"},"main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/aptoma/lambda-papertrail-logger.git"},"scripts":{"test":"jscs index.js","release":"release-it -n -i patch","release:minor":"release-it -n -i minor","release:major":"release-it -n -i major"},"dependencies":{"moment-timezone":"^0.5.3","winston":"^2.2.0","winston-papertrail":"github:gunnarlium/winston-papertrail#temp-fixes"},"license":"MIT","jscsConfig":{"preset":"yandex","disallowMultipleVarDecl":"exceptUndefined","maximumLineLength":null,"validateIndentation":"\t"},"npm":{"publish":true},"github":{"release":true},"gitHead":"da8256d3dcb1321155f6248531ffef57bba54a1d","bugs":{"url":"https://github.com/aptoma/lambda-papertrail-logger/issues"},"homepage":"https://github.com/aptoma/lambda-papertrail-logger#readme","_id":"@aptoma/lambda-papertrail-logger@1.0.2","_shasum":"ea3a74da55bc5b9200badff5bb9fc30eab90e7bb","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"aptoma","email":"npm@aptoma.com"},"dist":{"shasum":"ea3a74da55bc5b9200badff5bb9fc30eab90e7bb","tarball":"https://registry.npmjs.org/@aptoma/lambda-papertrail-logger/-/lambda-papertrail-logger-1.0.2.tgz","integrity":"sha512-Rmdr/ob/dAq48HN1ow9W7p9Mif+ddDpavANUVANSrEb69+DhNpTFqI4peA7R/OGeUGndqZGsPy3QXZ8To1nEJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIpqNT5+ZrvSgROjzG5sjy6zuTK5vAJEVvzrAgnCoxkwIhANKvKQL1kFV9BuYadnscw74ZcZKyx+FQ8hwuPJbrwOSf"}]},"maintainers":[{"name":"aptoma","email":"npm@aptoma.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lambda-papertrail-logger-1.0.2.tgz_1459319152463_0.12047065701335669"}},"1.0.3":{"name":"@aptoma/lambda-papertrail-logger","version":"1.0.3","description":"A logger to send AWS Lambda logs to Papertrail","author":{"name":"Gunnar Lium","email":"gunnar@aptoma.com"},"main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/aptoma/lambda-papertrail-logger.git"},"scripts":{"test":"jscs index.js","release":"release-it -n -i patch","release:minor":"release-it -n -i minor","release:major":"release-it -n -i major"},"dependencies":{"moment-timezone":"^0.5.3","winston":"^2.2.0","winston-papertrail":"github:gunnarlium/winston-papertrail#temp-fixes"},"license":"MIT","jscsConfig":{"preset":"yandex","disallowMultipleVarDecl":"exceptUndefined","maximumLineLength":null,"validateIndentation":"\t"},"npm":{"publish":true},"github":{"release":true},"gitHead":"d577b179dc3b1214fda97e5cc2ea04bc6309c0fe","bugs":{"url":"https://github.com/aptoma/lambda-papertrail-logger/issues"},"homepage":"https://github.com/aptoma/lambda-papertrail-logger#readme","_id":"@aptoma/lambda-papertrail-logger@1.0.3","_shasum":"8eb9a27508695beb2f942909e16632eff068bd25","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"aptoma","email":"npm@aptoma.com"},"dist":{"shasum":"8eb9a27508695beb2f942909e16632eff068bd25","tarball":"https://registry.npmjs.org/@aptoma/lambda-papertrail-logger/-/lambda-papertrail-logger-1.0.3.tgz","integrity":"sha512-ivfQEH4rtfLPKvMjh70BPuXBLpjIZX5AK34IcMdg88SC/5B4EsTOwMaS/eyYrrTLQ518bvQXYWoxHJrNQ+52ig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEamKM/hCDijR6F2GMET4NJICkW8h9Lne50Usd6gUqlgAiBg9YP7f6e4zqZuM6Vr+fGJROL83eBUtPOiUbmB1zYUoQ=="}]},"maintainers":[{"name":"aptoma","email":"npm@aptoma.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lambda-papertrail-logger-1.0.3.tgz_1459319572587_0.09719286556355655"}},"1.1.0":{"name":"@aptoma/lambda-papertrail-logger","version":"1.1.0","description":"A logger to send AWS Lambda logs to Papertrail","author":{"name":"Gunnar Lium","email":"gunnar@aptoma.com"},"main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/aptoma/lambda-papertrail-logger.git"},"scripts":{"test":"eslint index.js","release":"release-it -n -i patch","release:minor":"release-it -n -i minor","release:major":"release-it -n -i major"},"dependencies":{"moment-timezone":"^0.5.3","winston":"^2.2.0","winston-papertrail":"github:gunnarlium/winston-papertrail#temp-fixes"},"license":"MIT","npm":{"publish":true},"github":{"release":true},"gitHead":"dacbce91d0871b7a46218512d02721a43748e627","bugs":{"url":"https://github.com/aptoma/lambda-papertrail-logger/issues"},"homepage":"https://github.com/aptoma/lambda-papertrail-logger#readme","_id":"@aptoma/lambda-papertrail-logger@1.1.0","_shasum":"59550bf2637aecc3403e74702492716422e91291","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"aptoma","email":"npm@aptoma.com"},"dist":{"shasum":"59550bf2637aecc3403e74702492716422e91291","tarball":"https://registry.npmjs.org/@aptoma/lambda-papertrail-logger/-/lambda-papertrail-logger-1.1.0.tgz","integrity":"sha512-XsDdMcdxKw8ARsGI1erWwNRugiT9ul+S++fX10SF7UVsAyqXuQ/C4ixLkdiY0GQlS94ND/TXLZipmCYzBwKBUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDh3DgTZG1G5FgHR8kNs6dh1yMnCLJpzMCAOJlS70jfAIgLJ4Z9XDyJReFDZ1Em7X0pV99jn14wgQb7Kj/py7Gt5M="}]},"maintainers":[{"name":"aptoma","email":"npm@aptoma.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lambda-papertrail-logger-1.1.0.tgz_1460128404513_0.12337275734171271"}}},"readme":"Lambda Papertrail Logger\n========================\n\nA module for logging to Papertrail from AWS Lambda.\n\nIt will add metadata to the logs based on the context the function is run in, and format everything as JSON for easy reuse in other services.\n\nThis module is designed to be used within Aptoma, and is therefore rather opinionated with limited configuration options.\n\nInstallation\n------------\n\n    npm install --save @aptoma/lambda-papertrail-logger\n\nUsage\n-----\n\n```js\nvar createLogger = require('@aptoma/lambda-papertrail-logger');\n\nexports.handler = function (event, context) {\n\tvar papertrailConfig = {\n\t\t// @see https://papertrailapp.com/account/destinations\n\t\thost: 'logs123.papertrail.com',\n\t\tport: 12345\n\t};\n\tvar log = createLogger(context, papertrailConfig);\n\tlog.info('Executing handler', event);\n};\n```\n\nThe logger is an extension of `winston.Logger`.\n\n### Log timer events\n\nIn addition to being created with the relevant transports and formatters, the logger also exposes a `log.timerEvent(event)` method.\n\nIt will format a timer event created by [@aptoma/timer](https://github.com/aptoma/node.timer) for sending to our internal event analytics service:\n\n```js\nvar createLogger = require('@aptoma/lambda-papertrail-logger');\nvar timer = require('@aptoma/timer');\n\nexports.handler = function (event, context) {\n\tvar elapsed = timer('ProcessingTime');\n\tvar log = createLogger(context, papertrailConfig);\n\tlog.timerEvent(elapsed());\n};\n```\n","maintainers":[{"name":"aptoma","email":"npm@aptoma.com"}],"time":{"modified":"2022-06-12T14:46:04.492Z","created":"2016-03-30T06:25:54.622Z","1.0.2":"2016-03-30T06:25:54.622Z","1.0.3":"2016-03-30T06:32:54.678Z","1.1.0":"2016-04-08T15:13:26.982Z"},"homepage":"https://github.com/aptoma/lambda-papertrail-logger#readme","repository":{"type":"git","url":"git+ssh://git@github.com/aptoma/lambda-papertrail-logger.git"},"author":{"name":"Gunnar Lium","email":"gunnar@aptoma.com"},"bugs":{"url":"https://github.com/aptoma/lambda-papertrail-logger/issues"},"license":"MIT","readmeFilename":"README.md"}