Socket
Book a DemoInstallSign in
Socket

hapi-log-response

Package Overview
Dependencies
Maintainers
6
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-log-response

Log request and response payloads based on statusCode

latest
Source
npmnpm
Version
6.0.1
Version published
Maintainers
6
Created
Source

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

FAQs

Package last updated on 19 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts