@microservice/logger

    1.0.0 • Public • Published

    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

    Keywords

    Install

    npm i @microservice/logger

    DownloadsWeekly Downloads

    44

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • microservice-admin