Skip to content
Development style logging middleware
JavaScript
Branch: master
Clone or download
Pull request Compare This branch is 15 commits ahead, 33 commits behind koajs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
History.md
Readme.md
example.js
index.js
package.json
test-server.js
test.js

Readme.md

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.66kb

Installation

$ npm install shimo-koa-logger

Example

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

You can’t perform that action at this time.