Sha256: 2827cd661e9b39e3a0742ea535a2d9369be83a452785a76642288c731e33fd1c
Contents?: true
Size: 302 Bytes
Versions: 4
Compression:
Stored size: 302 Bytes
Contents
module GELF # Plain Ruby sender. class RubySender def initialize(host, port) @host, @port = host, port @socket = UDPSocket.open end def send_datagrams(datagrams) datagrams.each do |datagram| @socket.send(datagram, 0, @host, @port) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gelf-1.1.0.beta4 | lib/gelf/ruby_sender.rb |
gelf-1.1.0.beta3 | lib/gelf/ruby_sender.rb |
gelf-1.1.0.beta2 | lib/gelf/ruby_sender.rb |
gelf-1.1.0.beta1 | lib/gelf/ruby_sender.rb |