Method: VCAP::Logging::Sink::SyslogSink#open

Defined in:
lib/vcap/logging/sink/syslog_sink.rb

#openObject



38
39
40
41
42
43
44
45
# File 'lib/vcap/logging/sink/syslog_sink.rb', line 38

def open
  @mutex.synchronize do
    unless @opened
      @syslog = Syslog.open(@prog_name, Syslog::LOG_PID, Syslog::LOG_USER)
      @opened = true
    end
  end
end