hapi-log-response
v6.0.1
Published
Log request and response payloads based on statusCode
Downloads
168
Keywords
Readme
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