stackrabbit-bunyan
v2.0.0
Published
Bunyan logging middleware for stackrabbit
Downloads
6
Maintainers
Readme
Stackrabbit Bunyan [Coming Soon]
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()