Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pino-http

Package Overview
Dependencies
Maintainers
4
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-http - npm Package Compare versions

Comparing version 6.2.0 to 6.3.0

example-custom-format.js

7

package.json
{
"name": "pino-http",
"version": "6.2.0",
"version": "6.3.0",
"description": "High-speed HTTP logger for Node.js",

@@ -11,3 +11,3 @@ "main": "logger.js",

"pino": "^7.0.5",
"pino-std-serializers": "^4.0.0"
"pino-std-serializers": "^5.0.0"
},

@@ -19,2 +19,3 @@ "devDependencies": {

"http-ndjson": "^3.1.0",
"pino-http-print": "^3.1.0",
"pino-pretty": "^7.1.0",

@@ -31,3 +32,3 @@ "pre-commit": "^1.1.2",

"benchmark": "bash ./scripts/benchmark-all",
"test": "standard && tap test.js && npm run test-types",
"test": "standard && tap test/*.js && npm run test-types",
"fix": "standard --fix",

@@ -34,0 +35,0 @@ "test-types": "tsc && tsd && ts-node index.test-d.ts"

@@ -232,2 +232,21 @@ # pino-http  [![Build Status](https://img.shields.io/github/workflow/status/pinojs/pino-http/CI)](https://github.com/pinojs/pino-http/actions)

##### Custom formatters
You can customize the format of the log output by passing a [Pino transport](https://github.com/pinojs/pino/blob/master/docs/transports.md#v7-transports).
```js
const logger = require('pino-http')({
quietReqLogger: true, // turn off the default logging output
transport: {
target: 'pino-http-print', // use the pino-http-print transport and its formatting output
options: {
destination: 1,
all: true,
translateTime: true
}
}
})
```
#### Default serializers

@@ -234,0 +253,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc