koa-req-trace
v0.0.2
Published
req url trace
Downloads
2
Readme
koa-req-trace
koa请求日志打印
Installation
$ npm install koa-req-trace
API
var koa = require('koa');
var app = koa();
app.use(require('koa-req-trace')(options));
Options
console
{boolean} 打印到控制台, 默认trueappendFile
{boolean} 输出到文件,默认truedist
{string} 文件路径,默认'./log.txt'
Example
var app = require('koa')();
var koaReqTrace = require('koa-req-trace');
app.use(koaReqTrace({
console: false,
appendFile: true,
dist: path.join(__dirname, "logger.txt")
}));
Support
- mail - [email protected]
License
MIT