@microservice/logger

Logger for koa microservices

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Jun 7, 2016Jun 6, 2016Minified + gzip package size for @microservice/logger in KB

Readme

logger

Simple bunyan-based logger for koa – intended to work with @microservice/koa-logging

Example Usage

const config = require('/path/to/config'),
    logging = require('@microservice/koa-logging'),
    koa = require('koa');

const logger = require('@microservice/logger')({
    name: 'some-service-name',
    environment: config.environment,
    version: require('./version')
});

const app = koa()

...

app.use(logging(logger))

...

Future

Fluentd integration

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.