payload-logger
A simple express middleware to log request.query and request.body
Last updated 2 years ago by xhmm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install payload-logger 
SYNC missed versions from official npm registry.

Introduction

This is a simple express middleware to log request.query and request.body to console for debugging

Usage

  1. 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)

Current Tags

  • 0.0.3                                ...           latest (2 years ago)

3 Versions

  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |