Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including log4koa with all npm packages installed. Try it out:

var log4koa = require("log4koa")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

log4koa v0.0.3

provider logger for koa

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
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free