四好公路
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
巴林闲侠 6f4dcd76d0 授权管理 3 years ago
..
node_modules 授权管理 3 years ago
History.md 授权管理 3 years ago
Readme.md 授权管理 3 years ago
index.js 授权管理 3 years ago
package.json 授权管理 3 years ago

Readme.md

koa-logger

npm version build status

Development style logger middleware for Koa.

<-- GET /
--> GET / 200 835ms 746b
<-- GET /
--> GET / 200 960ms 1.9kb
<-- GET /users
--> GET /users 200 357ms 922b
<-- GET /users?page=2
--> GET /users?page=2 200 466ms 4.66kb

Installation

$ npm install koa-logger

Example

var logger = require('koa-logger')
var koa = require('koa')

var app = koa()
app.use(logger())

Notes

Recommended that you .use() this middleware near the top to "wrap" all subsequent middleware.

License

MIT