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

pino

Package Overview
Dependencies
Maintainers
2
Versions
311
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino - npm Package Compare versions

Comparing version 2.1.5 to 2.1.6

2

package.json
{
"name": "pino",
"version": "2.1.5",
"version": "2.1.6",
"description": "fast and simple logger",

@@ -5,0 +5,0 @@ "main": "pino.js",

@@ -14,2 +14,3 @@ # pino  [![Build Status](https://travis-ci.org/mcollina/pino.svg)](https://travis-ci.org/mcollina/pino)

* [How to use Pino with Express](#express)
* [How to use Pino with Hapi](#hapi)
* [How do I rotate log files?](#rotate)

@@ -444,2 +445,48 @@ * [How to use Transports with Pino](#transports)

<a name="express"></a>
## How to use Pino with Hapi
We've got you covered:
```sh
npm install --save hapi-pino
```
```js
'use strict'
const Hapi = require('hapi')
const server = new Hapi.Server()
server.connection({ port: 3000 })
server.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
request.logger.info('In handler %s', request.path)
return reply('hello world')
}
})
server.register(require('hapi-pino'), (err) => {
if (err) {
console.error(err)
process.exit(1)
}
server.logger().info('another way for accessing it')
// Start the server
server.start((err) => {
if (err) {
console.error(err)
process.exit(1)
}
})
})
```
See the [hapi-pino readme](http://npm.im/hapi-pino) for more info.
<a name="rotate"></a>

@@ -551,67 +598,2 @@ ## How do I rotate log files

<a name="changelog"></a>
## Changelog
### v2.1.4
* [#28](https://github.com/mcollina/pino/issues/28) Support extreme
mode in child loggers
### v2.1.3
* [#27](https://github.com/mcollina/pino/issues/27) bump quick-format version for formatting bug fix
### v2.1.2
* changelog update
### v2.1.1
* [#26](https://github.com/mcollina/pino/pull/26) 60% perf increase on large objects
### v2.1.0
* [#24](https://github.com/mcollina/pino/pull/24) extreme mode allows a 60% perf improvement
### v2.0.0
* [#21](https://github.com/mcollina/pino/pull/21) sub-child loggers, up to 20% perf improvement
* breaking change in that methods must be called on (or else bound to) the `pino` object
### v1.1.1
* [#22](https://github.com/mcollina/pino/pull/22) fix json output
### v1.1.0
* [#18](https://github.com/mcollina/pino/pull/18) Added the error
serializer
* [#17](https://github.com/mcollina/pino/pull/17) throw when creating a
child logger without bindings
### v1.0.5
* Restored the binary functionality to pretty-print the logs
### v1.0.4
* README fix: the order of params in the constructor was inverted
### v1.0.3
* [#16](https://github.com/mcollina/pino/pull/16) added changelog
### v1.0.2
* [#15](https://github.com/mcollina/pino/pull/15) improved serializer output around circular references
### v1.0.1
* [#13](https://github.com/mcollina/pino/pull/13) 6x speed increase on multi arg logs by using custom format/interpolation function instead of util.format
### v1.0.0
* first stable release
<a name="team"></a>

@@ -618,0 +600,0 @@ ## The Team

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