{"id":15848507,"url":"https://github.com/linusu/pino-got","last_synced_at":"2025-09-10T05:31:28.254Z","repository":{"id":38198391,"uuid":"306092396","full_name":"LinusU/pino-got","owner":"LinusU","description":"A Got handler that logs all requests to a Pino logger","archived":false,"fork":false,"pushed_at":"2024-10-09T14:38:25.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T04:46:35.866Z","etag":null,"topics":["hacktoberfest","http","logger","nodejs","pino"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinusU.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-21T17:01:36.000Z","updated_at":"2024-10-09T14:38:28.000Z","dependencies_parsed_at":"2024-10-21T14:33:48.777Z","dependency_job_id":null,"html_url":"https://github.com/LinusU/pino-got","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"c834348e2065f8d4d40ebb1267317872b5ad8656"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fpino-got","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fpino-got/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fpino-got/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fpino-got/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/pino-got/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232501498,"owners_count":18533310,"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":["hacktoberfest","http","logger","nodejs","pino"],"created_at":"2024-10-05T18:03:07.773Z","updated_at":"2025-01-04T17:52:05.789Z","avatar_url":"https://github.com/LinusU.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pino: Got\n\nA [Got](https://github.com/sindresorhus/got) handler that logs all requests to a [Pino](https://github.com/pinojs/pino) logger.\n\n## Installation\n\n```sh\nnpm install --save pino-got\n```\n\n## Compatibility\n\n`pino-got` | `got`  | `pino`\n---------- | ------ | ------\n**`2.x`**  | `14.x`, `13.x`, `12.x` | `9.x`, `8.x`\n**`1.x`**  | `11.x` | `6.x`\n\n## Usage\n\n```js\nimport got from 'got'\nimport pino from 'pino'\nimport pinoGot from 'pino-got'\n\nconst logger = pino({ level: 'debug' })\nconst gotLogger = pinoGot(logger)\nconst client = got.extend({ handlers: [gotLogger] })\n\nclient.get('https://example.com/')\n```\n\nExample output with [pino-pretty](https://github.com/pinojs/pino-pretty):\n\n```text\n[1603000000227] DEBUG (88800 on Linus-MacBook-Pro.local): Making GET request to https://example.com/\n    method: \"GET\"\n    headers: {\n      \"user-agent\": \"got (https://github.com/sindresorhus/got)\"\n    }\n\n[1603000000694] DEBUG (88800 on Linus-MacBook-Pro.local): Got successful response in 467ms\n    statusCode: 200\n    headers: {\n      \"content-encoding\": \"gzip\",\n      \"age\": \"451741\",\n      \"cache-control\": \"max-age=604800\",\n      \"content-type\": \"text/html; charset=UTF-8\",\n      \"date\": \"Wed, 18 Oct 2020 05:46:40 GMT\",\n      \"etag\": \"\\\"3147526947+gzip\\\"\",\n      \"expires\": \"Wed, 25 Oct 2020 05:46:40 GMT\",\n      \"last-modified\": \"Thu, 17 Oct 2019 07:18:26 GMT\",\n      \"server\": \"ECS (nyb/1D1F)\",\n      \"vary\": \"Accept-Encoding\",\n      \"x-cache\": \"HIT\",\n      \"content-length\": \"648\",\n      \"connection\": \"close\"\n    }\n    body: \"\u003c!doctype html\u003e...\"\n    duration: \"467ms\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fpino-got","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusu%2Fpino-got","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fpino-got/lists"}