class LogStashLogger::Device::Unix
Public Class Methods
new(opts={})
click to toggle source
Calls superclass method
LogStashLogger::Device::Connectable::new
# File lib/logstash-logger/device/unix.rb, line 6 def initialize(opts={}) super @path = opts[:path] || fail(ArgumentError, "Path is required") end
Public Instance Methods
connect()
click to toggle source
# File lib/logstash-logger/device/unix.rb, line 11 def connect @io = ::UNIXSocket.new(@path).tap do |socket| socket.sync = sync unless sync.nil? end end