lib/logstash/outputs/base.rb in logstash-lite-0.2.20101222161646 vs lib/logstash/outputs/base.rb in logstash-lite-0.2.20110112115019
- old
+ new
@@ -1,13 +1,15 @@
-require "logstash/namespace"
+require "cgi"
require "logstash/event"
require "logstash/logging"
-require "cgi"
+require "logstash/namespace"
require "uri"
class LogStash::Outputs::Base
attr_accessor :logger
+
+ public
def initialize(url, config={}, &block)
@url = url
@url = URI.parse(url) if url.is_a? String
@config = config
@logger = LogStash::Logger.new(STDOUT)
@@ -18,13 +20,15 @@
@urlopts[k] = v.last if v.is_a?(Array)
end
end
end
+ public
def register
raise "#{self.class}#register must be overidden"
end # def register
+ public
def receive(event)
raise "#{self.class}#receive must be overidden"
- end
+ end # def receive
end # class LogStash::Outputs::Base