{"id":15595422,"url":"https://github.com/cdimascio/bunyan-cloudant","last_synced_at":"2025-08-22T13:14:46.799Z","repository":{"id":57191633,"uuid":"82836376","full_name":"cdimascio/bunyan-cloudant","owner":"cdimascio","description":"Bunyan plugin for Cloudant. 'Stream' logs to Cloudant.","archived":false,"fork":false,"pushed_at":"2017-02-22T18:57:14.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T04:29:27.095Z","etag":null,"topics":["bunyan","cloudant","logger","logging"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdimascio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-22T18:04:03.000Z","updated_at":"2017-02-26T01:09:11.000Z","dependencies_parsed_at":"2022-09-15T22:22:25.264Z","dependency_job_id":null,"html_url":"https://github.com/cdimascio/bunyan-cloudant","commit_stats":null,"previous_names":["cdimascio/bunyan-couchdb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fbunyan-cloudant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fbunyan-cloudant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fbunyan-cloudant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fbunyan-cloudant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdimascio","download_url":"https://codeload.github.com/cdimascio/bunyan-cloudant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246177330,"owners_count":20735946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bunyan","cloudant","logger","logging"],"created_at":"2024-10-03T01:00:19.053Z","updated_at":"2025-03-29T11:28:36.398Z","avatar_url":"https://github.com/cdimascio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bunyan-cloudant\nThis is a [bunyan](https://github.com/trentm/node-bunyan) plugin for [Cloudant](https://cloudant.com/). It allows you to 'stream' your bunyan logs to Cloudant.\n\nA \"stream\" is Bunyan's name for where it outputs log messages\n\n## Install\n\n`npm install bunyan-cloudant`\n\n## Usage\n\n\n```javascript\nconst bunyan = require('bunyan');\nconst CloudantStream = require('bunyan-cloudant');\n\nconst cloudantStream = new CloudantStream({\n  cloudant: {\n    url: process.env.COUCHDB_URL\n  },\n  dbName: 'server-logs'\n});\n\nexport const L = bunyan.createLogger({\n  name: 'my-app',\n  streams: [{\n    stream: process.stdout // stream to stdout\n  }, {\n    stream: cloudantStream // and stream to cloudant\n  }]\n});\n\n```\n\n## Options\n`CloudantStream` takes the following options\n\n```\n{\n  cloudant: { // required\n    uri: 'http://user:pass@www.cloudant.com'\n  },\n  dbName: 'logs', // required\n  log: myParentBunyanLogger // optional\n}\n```\n\n#### Required Props\nThe `cloudant` property (*required*) must conform to `cloudant`'s Initialization object. See the \n[Initialize](https://github.com/cloudant/nodejs-cloudant) section.\n\nThe `dbName` property (*required*) is the name Cloudant datbase that to 'stream' logs\n\nThe `log` property (*optional*) specifies a parent Bunyan logger\n\n\n\n# LICENSE\n[Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdimascio%2Fbunyan-cloudant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdimascio%2Fbunyan-cloudant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdimascio%2Fbunyan-cloudant/lists"}