Comparing version 3.0.0 to 3.0.1
@@ -36,6 +36,3 @@ 'use strict' | ||
// the logger is available in server.app | ||
server.app.logger.warn('Pino is registered') | ||
// also as a decorated API | ||
// as a decorated API | ||
server.logger().info('another way for accessing it') | ||
@@ -42,0 +39,0 @@ |
@@ -33,2 +33,5 @@ 'use strict' | ||
if (options.prettyPrint) { | ||
// pino has a similar logic that works slightly different | ||
// we must disable that | ||
delete options.prettyPrint | ||
var pretty = pino.pretty() | ||
@@ -35,0 +38,0 @@ pretty.pipe(stream) |
{ | ||
"name": "hapi-pino", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Hapi plugin for the Pino logger ", | ||
@@ -24,3 +24,3 @@ "main": "index.js", | ||
"flush-write-stream": "^1.0.0", | ||
"hapi": "^17.0.0-rc10", | ||
"hapi": "^17.0.0", | ||
"lab": "^15.0.0", | ||
@@ -33,3 +33,3 @@ "make-promises-safe": "^1.1.0", | ||
"dependencies": { | ||
"pino": "^4.9.0" | ||
"pino": "^4.10.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "repository": { |
@@ -54,5 +54,2 @@ # hapi-pino [](https://travis-ci.org/pinojs/hapi-pino) [](https://coveralls.io/github/pinojs/hapi-pino?branch=master) | ||
// the logger is available in server.app | ||
server.app.logger.warn('Pino is registered') | ||
// also as a decorated API | ||
@@ -124,9 +121,5 @@ server.logger().info('another way for accessing it') | ||
**hapi-pino** decorates the Hapi server with: | ||
**hapi-pino** decorates the Hapi server with `server.logger()`, which is a function that returns the current instance of | ||
[pino][pino]. See its doc for the way to actual log. | ||
* `server.logger()`, which is a function that returns the current instance of | ||
[pino][pino], see its doc for the way to actual log. | ||
* `server.app.logger`, same as before, but the logger it is also | ||
attached to the `server.app` object. | ||
<a name="requestdecorations"></a> | ||
@@ -133,0 +126,0 @@ ### Request Decorations |
974
31863
153
Updatedpino@^4.10.0