1.3.1 • Published 8 years ago
shimo-koa-logger v1.3.1
shimo-koa-logger
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.66kbInstallation
$ npm install shimo-koa-loggerExample
var logger = require('shimo-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