Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 610 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 610 Bytes

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