hapi-log-response

6.0.1 • Public • Published

hapi-log-response

Test Status Lint Status NPM

Log request and response payloads based on statusCode

Installation

npm install hapi-log-response

or

yarn add hapi-log-response

Usage

const Hapi = require('@hapi/hapi');
const server = Hapi.server({
  debug: {
    request: ['error']
  },
  port: 8080
});
await server.register([
  // ... other plugins like hapi-logr
  { plugin: require('hapi-log-response'),
    options: {}
  }
]);

A First + Third Project

Readme

Keywords

none

Package Sidebar

Install

npm i hapi-log-response

Weekly Downloads

13

Version

6.0.1

License

MIT

Unpacked Size

39.7 kB

Total Files

13

Last publish

Collaborators

  • jga
  • dawnerd
  • ecwillis
  • orthagonal1
  • alaguna
  • aleperez92