README
logger-one
express.js
A simple but efficient logging middleware forInstallation
npm install logger-one
API
var loggerOne = require('logger-one')
There are two different ways to use logger-one :
Simple Usage
app.use(loggerOne());
With options
app.use(loggerOne({
request:true,
requestData:{
headers:false,
body:true,
params:true,
query:true
},
response:true,
responseData:{
status:true,
body:true,
responseTime:false
}
}));
Note :
looger-one middleware must be loaded only after body-parser has been used
All the initialisation parameters are optional and by default are set true
Version 1.1.3 :
nitinhitman47@gmail.com)
Request URL bug fixed thanks to Nitin Padgotra (
AUTHOR
Tabish Rizvi (sayyidtabish@gmail.com)
LICENSE
MIT