• This repository has been archived on 15/Dec/2022
  • Stars
    star
    199
  • Rank 196,105 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐ŸŒฒ an express middleware to log with 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.

More Repositories

1

pino

๐ŸŒฒ super fast, all natural json logger
JavaScript
14,160
star
2

pino-pretty

๐ŸŒฒBasic prettifier for Pino log lines
JavaScript
1,212
star
3

pino-http

๐ŸŒฒ high-speed HTTP logger for Node.js
JavaScript
535
star
4

sonic-boom

Extremely fast utf8 only stream implementation
JavaScript
266
star
5

thread-stream

A streaming way to send data to a Node.js Worker Thread
JavaScript
229
star
6

pino-elasticsearch

๐ŸŒฒ load pino logs into Elasticsearch
JavaScript
176
star
7

pino-debug

๐ŸŒฒhigh performance debug logging ๐Ÿž
JavaScript
147
star
8

koa-pino-logger

๐ŸŒฒ pino logging koa middleware
JavaScript
91
star
9

pino-tee

๐ŸŒฒ tee pino logs into a file, with multiple levels
JavaScript
89
star
10

pino-multi-stream

๐ŸŒฒ A wrapper for Pino to provide Bunyan's multiple stream API
JavaScript
69
star
11

pino-nextjs-example

JavaScript
66
star
12

pino-noir

๐ŸŒฒ pino log redaction ๐Ÿท
JavaScript
66
star
13

pino-std-serializers

๐ŸŒฒ A list of standard object serializers for the Pino logger
JavaScript
58
star
14

pino-caller

๐ŸŒฒ Include call site of pino log messages
JavaScript
56
star
15

pino-mongodb

๐ŸŒฒ Insert JSON from stdin into MongoDB
JavaScript
54
star
16

pino-socket

๐ŸŒฒ A transport for sending pino logs to network sockets
JavaScript
42
star
17

pino-abstract-transport

Write Pino transports easily
JavaScript
34
star
18

pino-syslog

๐ŸŒฒ A transport for reformatting pino logs into standard syslog format
JavaScript
29
star
19

pino-arborsculpture

๐ŸŒฒ Change Pino log levels in a running process
JavaScript
24
star
20

pino-opentelemetry-transport

OpenTelemetry transport for Pino
JavaScript
21
star
21

pino-webpack-plugin

JavaScript
19
star
22

quick-format-unescaped

Solves a problem with util.format
JavaScript
17
star
23

pino-gelf

๐ŸŒฒ Convert Pino logs to GELF format and send to Graylog
JavaScript
13
star
24

restify-pino-logger

๐ŸŒฒ pino logging restify middleware
JavaScript
12
star
25

pino-inspector

Send your pino logs to the node inspector!
JavaScript
12
star
26

pino-http-print

๐ŸŒฒ debug HTTP printer for pino
JavaScript
9
star
27

pino-filter

๐ŸŒฒ A transport to filter log lines in the manner of the `debug` module
JavaScript
9
star
28

real-require

Keep require and import consistent after bundling or transpiling.
JavaScript
8
star
29

pino-clf

๐ŸŒฒ Transport which transforms Pino HTTP logs into Common Log Format
JavaScript
5
star
30

getpino.io

The website for pino
CSS
5
star
31

pino-toke

๐ŸŒฒ Transform Pino HTTP log messages with a format string
JavaScript
5
star
32

pino-test

JavaScript
2
star
33

pino-sapling

๐ŸŒฒ seed template for creating pino plugins/libraries/transports/utilities/modules
JavaScript
2
star
34

community

๐ŸŒฒ data on the members of the pino community
JavaScript
1
star
35

rill-pino-logger

๐ŸŒฒpino logging rill middleware
JavaScript
1
star