{"id":23330438,"url":"https://github.com/iopipe/iopipe-js-logger","last_synced_at":"2025-07-31T22:33:54.513Z","repository":{"id":57119166,"uuid":"132828105","full_name":"iopipe/iopipe-js-logger","owner":"iopipe","description":"Automatic console data into IOpipe","archived":false,"fork":false,"pushed_at":"2018-11-16T15:50:54.000Z","size":98,"stargazers_count":2,"open_issues_count":3,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-15T12:41:41.200Z","etag":null,"topics":["analytics","logging"],"latest_commit_sha":null,"homepage":"https://www.iopipe.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iopipe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-10T00:41:19.000Z","updated_at":"2018-11-16T15:49:43.000Z","dependencies_parsed_at":"2022-08-23T11:31:13.112Z","dependency_job_id":null,"html_url":"https://github.com/iopipe/iopipe-js-logger","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/iopipe/iopipe-js-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iopipe%2Fiopipe-js-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iopipe%2Fiopipe-js-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iopipe%2Fiopipe-js-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iopipe%2Fiopipe-js-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iopipe","download_url":"https://codeload.github.com/iopipe/iopipe-js-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iopipe%2Fiopipe-js-logger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268127797,"owners_count":24200445,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["analytics","logging"],"created_at":"2024-12-20T22:18:04.264Z","updated_at":"2025-07-31T22:33:54.476Z","avatar_url":"https://github.com/iopipe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IOpipe JS Logger Plugin\n\n[![npm version](https://badge.fury.io/js/%40iopipe%2Flogger.svg)](https://badge.fury.io/js/%40iopipe%2Flogger)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nThis is a logging plugin for use with [IOpipe](https://iopipe.com) and AWS Lambda. Automatically records output from `console` for viewing in the IOpipe dashboard.\n\n## Installation\n\nWith [yarn](https://yarnpkg.com/) (recommended) in project directory:\n\n`yarn add @iopipe/logger`\n\nWith npm in project directory:\n\n`npm install @iopipe/logger`\n\nThen include the plugin with IOpipe in your serverless function:\n\n```js\nconst iopipeLib = require('@iopipe/iopipe');\nconst logger = require('@iopipe/logger');\n\nconst iopipe = iopipeLib({\n  token: process.env.IOPIPE_TOKEN,\n  plugins: [logger({ enabled: true })]\n});\n\nexports.handler = iopipe(async (event) =\u003e {\n  console.log('This will show up in IOpipe!');\n  // supported methods include log, debug, info, warn, error, and dir\n  return 'Hello world!'\n});\n```\n\n## Config\n\n#### `enabled` (bool: optional = false)\n\nBy default, this plugin is disabled. To automatically record output of calls to `console`, set this value to `true`. You can also use an environment variable like this: `IOPIPE_LOGGER_ENABLED=true`.\n\n#### `networkTimeout` (number: optional = 5000)\n\nNetwork timeout for uploading logs to IOpipe.\n\n## License\n\nApache-2.0 see [LICENSE](https://www.apache.org/licenses/LICENSE-2.0.html)\n\nCopyright 2018, IOpipe, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiopipe%2Fiopipe-js-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiopipe%2Fiopipe-js-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiopipe%2Fiopipe-js-logger/lists"}