Neurologically Paralyzing Mouseovers
Need private packages and team management tools?Check out npm Teams »

log4koa

0.0.3 • Public • Published

log4koa

Installation

$ npm install log4koa

Example

var log4koa = require('log4koa');
var log4js = require('log4js');
var Log = log4js.getLogger();
var koa = require('koa');
var app = koa();
app.use(log4koa());
 
app.listen(3000);
Log.info('listening on port 3000');
 
// Output:
// [2017-02-06 21:01:41.343] [INFO] repl - listening on port 3000
// [2017-02-06 21:02:17.744] [INFO] log4koa - ::1 - GET / 404 time:2

Keywords

Install

npm i log4koa

DownloadsWeekly Downloads

5

Version

0.0.3

License

ISC

Last publish

Collaborators

  • avatar