{"_id":"@abbit/bunyan-cloud-function","_rev":"6-922732afeadc7a6e93711e55be8af81c","name":"@abbit/bunyan-cloud-function","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@abbit/bunyan-cloud-function","version":"1.0.0","keywords":["bunyan","google","gcp","cloud functions"],"author":{"name":"Wes"},"license":"MIT","_id":"@abbit/bunyan-cloud-function@1.0.0","maintainers":[{"name":"wesleyakio","email":"wesleyakio@tuntscorp.com"}],"homepage":"https://github.com/abbitco/bunyan-cloud-function#readme","bugs":{"url":"https://github.com/abbitco/bunyan-cloud-function/issues"},"dist":{"shasum":"077ba6a016c64e58b78127d975d1adc57a05b87a","tarball":"https://registry.npmjs.org/@abbit/bunyan-cloud-function/-/bunyan-cloud-function-1.0.0.tgz","fileCount":6,"integrity":"sha512-KCgVzMrIOg5qrpJ9uNDZ4+5tgGwiKOk+LiEWYD3+wj5xbxAcmR/Hpm6yX5HcWEQevFbGfZZDSA8xA5d5hBUIEA==","signatures":[{"sig":"MEUCIQD+DmNXYixEFKGCuSwnFBoqP4cxjmmBmLUkQ898VLrYugIgeMEmuqO2A/17C55ORlBJdRZRzg3WZkN/ZoLsLQpOOIU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7258,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf5pX+CRA9TVsSAnZWagAAKNAP/Rt4SYm1eJrngZczRdQi\nr2+wmLKDvUeudE99ptl3F7HmVcRObcfXUoZHom6W0h1fSTjpBGmNXRpessep\nbsfjSsiYGUX0H/UwJNMcN2BSCkliIRMIKBcpfWNsP4g8tamFT7VMuLb8MyTP\nsOYukNkhgGFo4hcgSLtr7AQQMyg+RKNVTC7uxDd+7+RP8QNRE6pIgRFS1cQw\n7FGkKDnFxzDohvTm8CZxogN0iR3qNlWL17S9v1G9KCDhTeLlZVL4x44BKKhi\nizrfaBYHKsHF6L/UIw9A9a3xjQoC04OPD95DkyJC547c/AvI1kH5V0KsEkjr\nb2fB35H1OudGbpaZpUeS75QjTL3Yyq4Ilzj6YtDqJ2zNJEKHOyEqiMFEGPhf\nXfELMlYaQ0hFt6R76awlda9pEApyn0DN9J998yEDdBvJN5PtZX0zcaBmfr2O\nxOrhXKjLu40mpF3y4cqjWYxHeVagn3hiaa+NutD1ULFtULiazmLV/KiO+g/U\nbaNyuJwEzymsgNwWWFlBo1dq0JMlrKqiJd7kqZB72hLljG9w9Hw7YBeAjMyC\nRi4TQBREaSF6s3BgTwiSBgfbHmo+5E4egn8/gwVQdjKi7n/tFD/FujZzOPek\n3i6D5QgBaVruJ+vY8XzGT8Q1JXwE64S2VjQ7gi6P4UZrxWUAGdRnIzoYmf/Y\nscMT\r\n=LpQz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"b8f654d29c45895e4a53bf9ec1538513e1891e95","scripts":{"test":"mocha -r ts-node/register --reporter=spec --exit","build":"tsc"},"_npmUser":{"name":"wesleyakio","email":"wesleyakio@tuntscorp.com"},"repository":{"url":"git+https://github.com/abbitco/bunyan-cloud-function.git","type":"git"},"_npmVersion":"6.14.5","description":"A Raw Stream plugin so you can use Bunyan with StackDriver by ajusting the format you print to stdout(no network or async shenanigans).","directories":{},"_nodeVersion":"14.5.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^8.2.1","eslint":"^7.6.0","typescript":"^3.8.0","@types/chai":"^4.2.14","@types/mocha":"^8.2.0","eslint-plugin-import":"^2.22.0","@typescript-eslint/parser":"^3.8.0","@typescript-eslint/eslint-plugin":"^3.9.1"},"_npmOperationalInternal":{"tmp":"tmp/bunyan-cloud-function_1.0.0_1608947197518_0.14878593610585877","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.1":{"name":"@abbit/bunyan-cloud-function","version":"1.0.1","keywords":["bunyan","google","gcp","cloud functions"],"author":{"name":"Wes"},"license":"MIT","_id":"@abbit/bunyan-cloud-function@1.0.1","maintainers":[{"name":"wesleyakio","email":"wesleyakio@tuntscorp.com"}],"homepage":"https://github.com/abbitco/bunyan-cloud-function#readme","bugs":{"url":"https://github.com/abbitco/bunyan-cloud-function/issues"},"dist":{"shasum":"cd13a7d8302accd7e565b6e8baa650fca296b2a3","tarball":"https://registry.npmjs.org/@abbit/bunyan-cloud-function/-/bunyan-cloud-function-1.0.1.tgz","fileCount":6,"integrity":"sha512-z4uHa0kZB5hAIkmLfnlw4lgkpqr9EKHJaGWc14LdF5XAc++BSrbHpykR27q1xsClzY9kXRFvaunvGHGrI99YUw==","signatures":[{"sig":"MEQCIFh97m6AUWmcqThfRp+/PbzWBupu/crz6KU052GG7fpIAiBDEfAOBOPftJKuV2KqXnR2qUXGiUwiD1lUlmNtGTc8FQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8369,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf5pm5CRA9TVsSAnZWagAARSEP/iEU6Qatn3sK6BbX7GG4\nlfZigAa7K7d3QGeU6ssRNboPcini6jTh3wD3SyleEdX3Rfpy7YfyTsJVWiCF\noCjbVJ7RTs11YmZVCyu5K5OYaMexMHm3BBHCmfAL2XW48nC051elgiLZS9fb\nTgwvVIj8aghF4PnCLU+oV4fnPw88wf5OULIDUx0UsZZwBGpHDOYOtr8APW5Z\n/6oWOXJ8FuuL8ZWaNZobwhLt12mwJwl7oMWGmpNmf7QdjjuFQy0f4m22TLFx\nZSeaqB2NaqiZSnXCP+CGPJEd4plh+sTzjA/2Q+3rLvRYJeRAk2Fy9sqbpuNf\nMt4VQzdTOEJwO0JU4mYZaTJtTCxCQVjjkfRoJLZQXV/dZTZ/vPsk8ODGTfky\ntQSQ4JqB8O45nxJ2N2zNzXsyxnl0haLJSd6GvCPnYhxvNRZY0fgFQvfbEl8F\nJJVy6hleQk7B6QJWeA8zxGGjvu7rAwLAifYRZFUu4r9uwYlQX3D8wak3Joms\n9rWcPoIy0XA4MQ2Dv6Q9Ycz7oJahBg7DeMtV97AwU38S5yTsGddWPmuZBXst\nbqNNSGLF9yMzNLj/Kj1WEvP+ItTcaNscnI2Yr6mByDarg2cSEGLmCCYzXhA3\nlqdxaA90oyUYwGqts+PpeLWzTt2DtTN2c+mXSmFleD+xNFAhEYkPfVPFP63J\nEGU9\r\n=s8O8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"82833619e77eb3b706e115717ee501fc6263b5e4","scripts":{"test":"mocha -r ts-node/register --reporter=spec --exit","build":"tsc"},"_npmUser":{"name":"wesleyakio","email":"wesleyakio@tuntscorp.com"},"repository":{"url":"git+https://github.com/abbitco/bunyan-cloud-function.git","type":"git"},"_npmVersion":"6.14.5","description":"A Raw Stream plugin so you can use Bunyan with StackDriver by ajusting the format you print to stdout(no network or async shenanigans).","directories":{},"_nodeVersion":"14.5.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^8.2.1","eslint":"^7.6.0","typescript":"^3.8.0","@types/chai":"^4.2.14","@types/mocha":"^8.2.0","eslint-plugin-import":"^2.22.0","@typescript-eslint/parser":"^3.8.0","@typescript-eslint/eslint-plugin":"^3.9.1"},"_npmOperationalInternal":{"tmp":"tmp/bunyan-cloud-function_1.0.1_1608948153236_0.3490515393990583","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2020-12-26T01:46:37.286Z","modified":"2026-07-10T16:18:45.030Z","1.0.0":"2020-12-26T01:46:37.680Z","1.0.1":"2020-12-26T02:02:33.338Z"},"bugs":{"url":"https://github.com/abbitco/bunyan-cloud-function/issues"},"author":{"name":"Wes"},"license":"MIT","homepage":"https://github.com/abbitco/bunyan-cloud-function#readme","keywords":["bunyan","google","gcp","cloud functions"],"repository":{"url":"git+https://github.com/abbitco/bunyan-cloud-function.git","type":"git"},"description":"A Raw Stream plugin so you can use Bunyan with StackDriver by ajusting the format you print to stdout(no network or async shenanigans).","maintainers":[{"name":"wesleyakio","email":"wesleyakio@tuntscorp.com"}],"readme":"# bunyan-cloud-function\n\nA package that allows you to use [Bunyan](https://github.com/trentm/node-bunyan) on [Google Cloud Functions](https://cloud.google.com/functions), have your logs appear on [StackDriver](https://cloud.google.com/logging), and not have to deal with missing logs, async log saving, delayed logs due to function freeze after return, etc, etc, etc.\n\n## Install\n\n```shell\nnpm i --save @abbit/bunyan-cloud-function\n```\n\n## Usage\n\n```javascript\nimport bunyan from 'bunyan';\nimport {LoggingBunyan} from '@abbit/bunyan-cloud-function';\n\nconst loggingBunyan = new LoggingBunyan();\n\nconst logger = bunyan.createLogger({\n    name: 'test',\n    streams: [\n        loggingBunyan.stream('INFO') // Will log to stdout in a format that stackdriver understands\n    ],\n});\n```\n\n## Tech stuff\n\nThis package changes the json format written to stdout(yes, stdout) just enough so that StackDriver recognizes the messages and log levels.\n\nWe created this because we like Bunyan and all other solutions were a pain to use. The file is 100 lines long so if it's not quite right for you feel free to play around and submit a pull request.\n","readmeFilename":"README.md"}