@microservice/logger
v1.0.0
Published
Logger for koa microservices
Downloads
14
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