koa-log-requests
Customizable Koa middleware for logging incoming requests. Outputs method, path, response status, time spent and request body.
Installation
$ npm install koa-log-requests --save
Usage
var koa = ;var requests = ; var app = ; app;app; app;
Options
There are few options, that you can customize:
var requests = ; requestsindent = 2; // insert N spaces at the beginningrequestsformat = ':method :path status=:status time=:time body=:body'; // format of outputrequestsfilter = 'password' 'password_confirmation'; // filter out these keys from request body
License
koa-log-requests is released under the MIT license.