{"id":13456494,"url":"https://github.com/pinojs/express-pino-logger","last_synced_at":"2025-03-24T10:32:49.660Z","repository":{"id":6230050,"uuid":"55138887","full_name":"pinojs/express-pino-logger","owner":"pinojs","description":"🌲 an express middleware to log with pino","archived":true,"fork":false,"pushed_at":"2022-12-15T12:41:35.000Z","size":70,"stargazers_count":199,"open_issues_count":13,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-09-08T14:48:41.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-31T09:45:46.000Z","updated_at":"2024-06-20T22:23:49.000Z","dependencies_parsed_at":"2023-01-13T13:53:42.182Z","dependency_job_id":null,"html_url":"https://github.com/pinojs/express-pino-logger","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinojs%2Fexpress-pino-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinojs%2Fexpress-pino-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinojs%2Fexpress-pino-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinojs%2Fexpress-pino-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pinojs","download_url":"https://codeload.github.com/pinojs/express-pino-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221962392,"owners_count":16908333,"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":[],"created_at":"2024-07-31T08:01:23.041Z","updated_at":"2024-10-29T00:30:31.348Z","avatar_url":"https://github.com/pinojs.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Middleware"],"sub_categories":[],"readme":"# express-pino-logger\n\nThis repo exists only to help people understand that [pino-http](https://github.com/pinojs/pino-http) works seamlessly with [express](http://npm.im/express). To our knowledge, `pino-http` is the [fastest express](#benchmarks) logger in town.\n\n## Benchmarks\n\nBenchmarks log each request/response pair while returning\n`'hello world'`, using\n[autocannon](https://github.com/mcollina/autocannon) with 100\nconnections and 10 pipelined requests (`autocannon -c 100 -p 10 http://localhost:3000`).\n\n* `express-bunyan-logger`: 2702 req/sec\n* `express-winston`: 5953 req/sec\n* `morgan`: 8570 req/sec\n* `pino-http`: 9807 req/sec\n* `pino-http` (extreme): 10407 req/sec\n* `pino-http` (without express): 22240.73 req/seq\n* `pino-http` (without express and extreme): 25536 req/sec\n\nAll benchmarks where taken on a Macbook Pro 2013 (2.6GHZ i7, 16GB of RAM).\n\nWhilst we're comparing `pino-http` against [morgan](http://npm.im/morgan), this isn't really a fair contest.\n\nMorgan doesn't support logging arbitrary data, nor does it output JSON. Further Morgan [uses a form of `eval`](https://github.com/expressjs/morgan/blob/5da5ff1f5446e3f3ff29d29a2d6582712612bf89/index.js#L383) to achieve high speed logging. Whilst probably safe, using `eval` at all tends to cause concern, particular when it comes to server-side JavaScript.\n\nThe fact that `pino-http` achieves higher throughput with JSON logging **and** arbitrary data, without using `eval`, serves to emphasise the high-speed capabilities of `pino-http`.\n\nWith `pino-http` you can have features, safety **and** speed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinojs%2Fexpress-pino-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinojs%2Fexpress-pino-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinojs%2Fexpress-pino-logger/lists"}