Socket
Socket
Sign inDemoInstall

bunyan-mqtt

Package Overview
Dependencies
62
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bunyan-mqtt

A bunyan raw stream to publish to mqtt


Version published
Maintainers
2
Install size
1.76 MB
Created

Readme

Source

bunyan-mqtt

A bunyan raw stream to publish to mqtt

Install

npm install bunyan-mqtt

Use

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

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

Options

  • host - host to use as broker (default: localhost)
  • port - the port to use on the broker (default: 1883)
  • topic - the topic to use for publishing (default: bunyan)
  • qos - the numeric qos to use in mqtt (default: 0)
  • retain - whether the broker should retain messages (default: false)

FAQs

Last updated on 07 Apr 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc