koa-bunyan-log
koa-bunyan-log is now compatible with koa v2 which requires node v4 or higher.
Installation
npm i -S koa-bunyan-log
Example
const Koa = const Logger = const app = const logger = app app app
Request Logger
koa-bunyan-log
also comes bundled with a simple attachment for logging basic request/response information
app
$ node examples/server | bunyan -o short 19:06:05.170Z INFO koa: 19:06:05.175Z INFO koa:
Attach options
Options can be passed through when attaching the log instance to Koa (feel free to attach multiple logger instances).
app app
Credits
If you find other modules that contain the keywords bunyan and koa then this module has almost certainly been influenced by them, thanks for all the hard work guys and gals!
License
MIT