New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hapi-pino

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-pino - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

.travis.yml

7

example.js

@@ -27,3 +27,8 @@ 'use strict'

server.register(require('.'), (err) => {
server.register({
register: require('.').register,
options: {
prettyPrint: process.env.NODE_ENV !== 'production'
}
}, (err) => {
if (err) {

@@ -30,0 +35,0 @@ console.error(err)

@@ -22,4 +22,12 @@ 'use strict'

const logger = pino(options, options.stream)
let stream = options.stream || process.stdout
if (options.prettyPrint) {
let pretty = pino.pretty()
pretty.pipe(stream)
stream = pretty
}
const logger = pino(options, stream)
// expose logger as 'server.app.logger'

@@ -26,0 +34,0 @@ server.app.logger = logger

4

package.json
{
"name": "hapi-pino",
"version": "1.0.1",
"version": "1.1.0",
"description": "Hapi plugin for the Pino logger ",

@@ -37,4 +37,4 @@ "main": "index.js",

"dependencies": {
"pino": "^2.1.4"
"pino": "^2.2.0"
}
}

@@ -1,3 +0,4 @@

# hapi-pino
# hapi-pino  [![Build Status](https://travis-ci.org/mcollina/hapi-pino.svg)](https://travis-ci.org/mcollina/hapi-pino)
[Hapi](http://hapijs.com) plugin for the [Pino](https://github.com/mcollina/pino) logger. It logs in JSON for easy

@@ -86,2 +87,5 @@ post-processing.

`process.stdout`.
- `[prettyPrint]` - pretty print the logs (same as `node server |
pino`), disable in production. Default is `false`, enable in
development by passing `true`.
- `[tags]` - a map to specify pairs of Hapi log tags and levels.

@@ -88,0 +92,0 @@ - `[allTags]` - the logging level to apply to all tags not matched by

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