@copropr/logger-plugin

0.0.5 • Public • Published

Logger Plugin

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

Installation

# NPM
$ npm i -S @copropr/logger-plugin

# Yarn
$ yarn add @copropr/logger-plugin

Usage

// 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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    0
    • next
  • 0.0.5
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    2
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0

Package Sidebar

Install

npm i @copropr/logger-plugin

Weekly Downloads

2

Version

0.0.5

License

ISC

Unpacked Size

2.52 kB

Total Files

6

Last publish

Collaborators

  • cmseguin