Project

plog-ruby

0.01
No release in over 3 years
Low commit activity in last 3 years
Send messages via UDP to the Plog Kafka forwarder.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

plog

Simple Ruby UDP client for the Plog Kafka forwarder.

Build & run tests

bundle install
bundle exec rspec

Usage

Instantiate a client and start sending messages.

require 'plog'
client = Plog.new
client.send("My hovercraft is full of eels.")

You can configure the client at initialization by passing these options:

  • :host - The host of the Plog process (default: 'localhost')
  • :port - The port on which Plog is listening (default: 54321)
  • :chunk_size - The maximum payload size for multipart datagrams (default: 64,000)
  • :logger - An optional logger instance