百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
E

express-pino-logger

> 编程语言
开源

一个用于使用 pino 记录日志的快速中间件

199 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

一个用于使用 pino 记录日志的快速中间件

express-pino-logger

This repo exists only to help people understand that pino-http works seamlessly with express. To our knowledge, pino-http is the fastest express logger in town.

Benchmarks

Benchmarks log each request/response pair while returning 'hello world', using autocannon with 100 connections and 10 pipelined requests (autocannon -c 100 -p 10 http://localhost:3000).

  • express-bunyan-logger: 2702 req/sec
  • express-winston: 5953 req/sec
  • morgan: 8570 req/sec
  • pino-http: 9807 req/sec
  • pino-http (extreme): 10407 req/sec
  • pino-http (without express): 22240.73 req/seq
  • pino-http (without express and extreme): 25536 req/sec

All benchmarks where taken on a Macbook Pro 2013 (2.6GHZ i7, 16GB of RAM).

Whilst we're comparing pino-http against morgan, this isn't really a fair contest.

Morgan doesn't support logging arbitrary data, nor does it output JSON. Further Morgan uses a form of eval to achieve high speed logging. Whilst probably safe, using eval at all tends to cause concern, particular when it comes to server-side JavaScript.

The 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.

With pino-http you can have features, safety and speed.

Issues· 13 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言