@microservice/logger

Logger for koa microservices

Stats

StarsIssuesVersionUpdatedCreatedSize
@microservice/logger
001.0.05 years ago5 years agoMinified + 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.