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
- Host: GitHub
- URL: https://github.com/airbnb/plog-ruby
- Owner: airbnb
- Created: 2014-02-07T03:13:22.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-03-17T15:27:11.000Z (over 2 years ago)
- Last Synced: 2025-07-28T08:47:45.478Z (2 months ago)
- Language: Ruby
- Size: 25.4 KB
- Stars: 4
- Watchers: 222
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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