An open API service indexing awesome lists of open source software.

https://github.com/airbnb/plog-ruby

Ruby client for Plog, the Kafka forwarder
https://github.com/airbnb/plog-ruby

Last synced: about 1 month ago
JSON representation

Ruby client for Plog, the Kafka forwarder

Awesome Lists containing this 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.

```ruby
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