lib/syslogstash/syslog_reader.rb in syslogstash-0.2.0 vs lib/syslogstash/syslog_reader.rb in syslogstash-0.3.0
- old
+ new
@@ -3,11 +3,15 @@
# A single socket reader.
#
class Syslogstash::SyslogReader
include Syslogstash::Worker
+ attr_reader :file
+
def initialize(file, tags, logstash)
@file, @tags, @logstash = file, tags, logstash
+
+ log { "initializing syslog socket #{file} with tags #{tags.inspect}" }
end
# Start reading from the socket file, parsing entries, and flinging
# them at logstash. This method will return, with the operation
# continuing in a separate thread.