Have ideas to improve npm?Join in the discussion! »

    stackrabbit-bunyan

    2.0.0 • Public • Published

    Stackrabbit Bunyan [Coming Soon]

    Circle CI

    Bunyan logging middleware for stackrabbit

    Installation

    npm install stackrabbit-bunyan
    

    Getting Started

    const stackrabbit = require('stackrabbit')
    const bunyan = require('bunyan')
    const bunyanMiddleware = require('stackrabbit-bunyan')
     
    const logger = bunyan.createLogger(...)
     
    const listener = stackrabbit({
      ...
    })
     
    listener.use(bunyanMiddleware(logger))
     
    listener.listen(function * () {
    })
     
    listener.on('error', (err) => {
      logger.error(err)
    })
     
    listener.connect()

    Install

    npm i stackrabbit-bunyan

    DownloadsWeekly Downloads

    2

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar