New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

koa-req-trace

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-req-trace

req url trace

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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} 打印到控制台, 默认true
  • appendFile {boolean} 输出到文件,默认true
  • dist {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 - 340443366@qq.com

License

MIT

Keywords

request

FAQs

Package last updated on 26 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts