A logger plugin that exposes a bunyan instance


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
Minified + gzip package size for @copropr/logger-plugin in KB


Logger Plugin

Just a simple plugin to wrap & predefine the configuration of bunyan


$ npm i -S @copropr/logger-plugin

# Yarn
$ yarn add @copropr/logger-plugin


// Commonjs
const LoggerPlugin = require('@copropr/logger-plugin').default

// ES6 module way
import LoggerPlugin from '@copropr/logger-plugin'

const logger = new LoggerPlugin(optionToPassToBunyan).instance

Note: Be sure to include the .instace since this plugin will not wrap bunyan instance of the logger

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.