Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Jethro-Koa Build Status

Jethro Logger for KoaJS. Extends Jethro to log KoaJS requests.

Installation

npm install --save jethro thedark1337/jethro-koa

Contributing

This project utilizes Mocha and ESLint to test the code style of the project. Just run the command npm test and make sure it passes

Usage

'use strict';

const Koa = require('koa');
const app = module.exports = new Koa();
const Jethro = require('jethro');
const logger = new Jethro();
const KoaLogger = require('jethro-koa');
const requestLogger = new KoaLogger();

logger.addPlugin('koa', requestLogger);

app.use(koaLogger.input());

License

Licensed under the LGPL v3 License

Copyright (C) 2015 Alex Pham (known as Thedark1337)

You can find full license here.

About

Jethro Logger for KoaJS

Resources

License

Packages

No packages published
You can’t perform that action at this time.