New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

kermit-bunyan

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kermit-bunyan

Kermit wrapper for bunyan logger.

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
4
-20%
Maintainers
1
Weekly downloads
 
Created
Source

Kermit Module

kermit-bunyan - 0.1.0

The kermit-bunyan node module is a kermit wrapper of the bunyan logging framework.

Install

$ npm install --save kermit-bunyan

Usage & Configuration

Add the service to your application config file:

{
  app: {
    services: {
      logging: 'kermit-bunyan/LoggingService'
      ...
    }
  }

And configure the service appropriate. Check the bunyan docs for config options. NOTE: The kermit module supports the specification of an object of streams in addition to bunyan's default array streams definition. That allows overriding specific stream configurations on the different config layers supported by kermit.

  logging: {
    bunyan: {
      name: 'MY LOGGER', // (required)
      appName: 'MICROSERVICE NAME',
      streams: {
        screen: require('bunyan-format')({
          outputMode: 'long',
          color: false
        }),
        errorLog: {
          path: 'path/to/my/error.log',
          level: 'error'
        }
      }
    }
  }
}

Keywords

kermit

FAQs

Package last updated on 08 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts