class Restash::Logger
Public Class Methods
new(host, port, options)
click to toggle source
# File lib/restash/logger.rb, line 6 def initialize(host, port, options) @host = host @port = port @options = options end
Public Instance Methods
write(data)
click to toggle source
# File lib/restash/logger.rb, line 12 def write(data) sock = TCPTimeout::TCPSocket.new(@host, @port, @options) sock.write(data) sock.close end