hapi-pino
hapi-pino copied to clipboard
🌲 Hapi plugin for the Pino logger
```typescript import pinoHapiPlugin from "hapi-pino"; server.register({ plugin: pinoHapiPlugin, options: { // ...options }, }); ``` Will give type error ``` No overload matches this call. The last overload gave the...
I think this should have been added as an optional property.
It's useful for me to be able to access a user's ID or email address when investigating errors reported from our Hapi project. This metadata is in Hapi's `request.auth.credentials` object,...
When running hapi-pino with prettyPrint enabled, I get the following error: TypeError: pretty is not a function at Object.write (node_modules/pino/lib/tools.js:282:25) at Pino.write (node_modules/pino/lib/proto.js:177:15) at Pino.LOG [as error] (node_modules/pino/lib/tools.js:55:21) at Object.listener...
Hi, We have written two custom plugins using `hapi-pino` for our project written on hapi20 and registered both the plugins with different options. When I am starting the server I...
I've looked at the library and found can't be edit or format custom log in events 'response' when logRequestCompleted: true log when a request completed I try to add more...
Hi guys, How to customize the log format in this plugin? Now the log time format is the timestamp, and I want to convert it to the customize formatter, who...
My code is a follows: ``` 'use strict'; const hapi = require('@hapi/hapi') const HapiPino = require('hapi-pino') const server = hapi.server({ port: 3000 }) server.route([ { method: 'POST', path: '/response', handler:(request,...
I'm completely new to Hapi, I'm just trying to contribute to another project that uses it. If I am using `hapi-pino`, is it useful to have a default `route.options.response.failAction` like...
Hapi-pino should log the error details for any uncaught error regardless of what status code the response is mapped to. For example, if a route handler throws `Boom.forbidden('Some Reason')` then...