{"id":13403153,"url":"https://github.com/pinojs/pino","last_synced_at":"2025-05-12T17:54:26.179Z","repository":{"id":37335085,"uuid":"51840802","full_name":"pinojs/pino","owner":"pinojs","description":"🌲 super fast, all natural json logger","archived":false,"fork":false,"pushed_at":"2025-04-01T15:23:50.000Z","size":3099,"stargazers_count":15223,"open_issues_count":137,"forks_count":896,"subscribers_count":84,"default_branch":"main","last_synced_at":"2025-04-15T22:14:45.352Z","etag":null,"topics":["fast","json","logger","nodejs","pino"],"latest_commit_sha":null,"homepage":"http://getpino.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pinojs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-02-16T14:14:29.000Z","updated_at":"2025-04-15T06:04:30.000Z","dependencies_parsed_at":"2024-01-13T11:29:35.710Z","dependency_job_id":"f7a6fba7-7f66-4555-b377-6a16ac9071c0","html_url":"https://github.com/pinojs/pino","commit_stats":{"total_commits":1583,"total_committers":344,"mean_commits":4.601744186046512,"dds":0.673404927353127,"last_synced_commit":"ad864b7ae02b314b9a548614f705a437e0db78c3"},"previous_names":["mcollina/sermon"],"tags_count":302,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinojs%2Fpino","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinojs%2Fpino/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinojs%2Fpino/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinojs%2Fpino/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pinojs","download_url":"https://codeload.github.com/pinojs/pino/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250400620,"owners_count":21424407,"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":["fast","json","logger","nodejs","pino"],"created_at":"2024-07-30T19:01:26.131Z","updated_at":"2025-04-23T08:40:37.532Z","avatar_url":"https://github.com/pinojs.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Packages","Repository","包","Logging","目录","Uncategorized","json","Other Useful Package","nodejs","Framework agnostic packages"],"sub_categories":["Logging","日志","Uncategorized","Logger","Node"],"readme":"![banner](pino-banner.png)\n\n# pino\n[![npm version](https://img.shields.io/npm/v/pino)](https://www.npmjs.com/package/pino)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/pinojs/pino/ci.yml)](https://github.com/pinojs/pino/actions)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)\n\n[Very low overhead](#low-overhead) Node.js logger.\n\n## Documentation\n\n* [Benchmarks ⇗](/docs/benchmarks.md)\n* [API ⇗](/docs/api.md)\n* [Browser API ⇗](/docs/browser.md)\n* [Redaction ⇗](/docs/redaction.md)\n* [Child Loggers ⇗](/docs/child-loggers.md)\n* [Transports ⇗](/docs/transports.md)\n* [Web Frameworks ⇗](/docs/web.md)\n* [Pretty Printing ⇗](/docs/pretty.md)\n* [Asynchronous Logging ⇗](/docs/asynchronous.md)\n* [Ecosystem ⇗](/docs/ecosystem.md)\n* [Help ⇗](/docs/help.md)\n* [Long Term Support Policy ⇗](/docs/lts.md)\n\n## Install\n\nUsing NPM:\n```\n$ npm install pino\n```\n\nUsing YARN:\n```\n$ yarn add pino\n```\n\nIf you would like to install pino v6, refer to https://github.com/pinojs/pino/tree/v6.x.\n\n## Usage\n\n```js\nconst logger = require('pino')()\n\nlogger.info('hello world')\n\nconst child = logger.child({ a: 'property' })\nchild.info('hello child!')\n```\n\nThis produces:\n\n```\n{\"level\":30,\"time\":1531171074631,\"msg\":\"hello world\",\"pid\":657,\"hostname\":\"Davids-MBP-3.fritz.box\"}\n{\"level\":30,\"time\":1531171082399,\"msg\":\"hello child!\",\"pid\":657,\"hostname\":\"Davids-MBP-3.fritz.box\",\"a\":\"property\"}\n```\n\nFor using Pino with a web framework see:\n\n* [Pino with Fastify](docs/web.md#fastify)\n* [Pino with Express](docs/web.md#express)\n* [Pino with Hapi](docs/web.md#hapi)\n* [Pino with Restify](docs/web.md#restify)\n* [Pino with Koa](docs/web.md#koa)\n* [Pino with Node core `http`](docs/web.md#http)\n* [Pino with Nest](docs/web.md#nest)\n\n\n\u003ca name=\"essentials\"\u003e\u003c/a\u003e\n## Essentials\n\n### Development Formatting\n\nThe [`pino-pretty`](https://github.com/pinojs/pino-pretty) module can be used to\nformat logs during development:\n\n![pretty demo](pretty-demo.png)\n\n### Transports \u0026 Log Processing\n\nDue to Node's single-threaded event-loop, it's highly recommended that sending,\nalert triggering, reformatting, and all forms of log processing\nare conducted in a separate process or thread.\n\nIn Pino terminology, we call all log processors \"transports\" and recommend that the\ntransports be run in a worker thread using our `pino.transport` API.\n\nFor more details see our [Transports⇗](docs/transports.md) document.\n\n### Low overhead\n\nUsing minimum resources for logging is very important. Log messages\ntend to get added over time and this can lead to a throttling effect\non applications – such as reduced requests per second.\n\nIn many cases, Pino is over 5x faster than alternatives.\n\nSee the [Benchmarks](docs/benchmarks.md) document for comparisons.\n\n### Bundling support\n\nPino supports being bundled using tools like webpack or esbuild. \n\nSee [Bundling](docs/bundling.md) document for more information.\n\n\u003ca name=\"team\"\u003e\u003c/a\u003e\n## The Team\n\n### Matteo Collina\n\n\u003chttps://github.com/mcollina\u003e\n\n\u003chttps://www.npmjs.com/~matteo.collina\u003e\n\n\u003chttps://twitter.com/matteocollina\u003e\n\n### David Mark Clements\n\n\u003chttps://github.com/davidmarkclements\u003e\n\n\u003chttps://www.npmjs.com/~davidmarkclements\u003e\n\n\u003chttps://twitter.com/davidmarkclem\u003e\n\n### James Sumners\n\n\u003chttps://github.com/jsumners\u003e\n\n\u003chttps://www.npmjs.com/~jsumners\u003e\n\n\u003chttps://twitter.com/jsumners79\u003e\n\n### Thomas Watson Steen\n\n\u003chttps://github.com/watson\u003e\n\n\u003chttps://www.npmjs.com/~watson\u003e\n\n\u003chttps://twitter.com/wa7son\u003e\n\n## Contributing\n\nPino is an **OPEN Open Source Project**. This means that:\n\n\u003e Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.\n\nSee the [CONTRIBUTING.md](https://github.com/pinojs/pino/blob/main/CONTRIBUTING.md) file for more details.\n\n\u003ca name=\"acknowledgments\"\u003e\u003c/a\u003e\n## Acknowledgments\n\nThis project was kindly sponsored by [nearForm](https://nearform.com).\nThis project is kindly sponsored by [Platformatic](https://platformatic.dev).\n\nLogo and identity designed by Cosmic Fox Design: https://www.behance.net/cosmicfox.\n\n## License\n\nLicensed under [MIT](./LICENSE).\n\n[elasticsearch]: https://www.elastic.co/products/elasticsearch\n[kibana]: https://www.elastic.co/products/kibana\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinojs%2Fpino","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinojs%2Fpino","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinojs%2Fpino/lists"}