@inheap/bunyan-mqtt
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

bunyan-mqtt

A bunyan raw stream to publish to mqtt

Installation

$ npm install @ninu/bunyan-mqtt

Usage

Create DB context and provide connection configuration.

var bunyan = require('bunyan');
var bunyanMqtt = require('bunyan-mqtt');

var log = bunyan.createLogger({
  streams:[{
      level:'info',
      type:'raw',
      stream: bunyanMqtt({ topic:'logging', port:1883, host:'localhost' }) }
  ]
});

Readme

Keywords

none

Package Sidebar

Install

npm i @inheap/bunyan-mqtt

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

43.9 kB

Total Files

12

Last publish

Collaborators

  • nitinbansal