Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bunyan-mqtt

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bunyan-mqtt

A bunyan raw stream to publish to mqtt

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
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

Package last updated on 07 Apr 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc