payload-logger
v0.0.3
Published
A simple express middleware to log request.query and request.body
Downloads
3
Readme
Introduction
This is a simple express middleware to log request.query
and request.body
to console for debugging
Usage
npm i body-parser payload-logger
import payloadLogger from 'payload-logger'
import bodyParser = require('body-parser');
app.use(bodyParser.json())
app.use(bodyParser.urlencoded({ extended: false }))
app.use(payloadLogger)