Class: LogStash::Codecs::RubyDebug
- Defined in:
- lib/logstash/codecs/rubydebug.rb
Constant Summary
Constants included from LogStash::Config::Mixin
LogStash::Config::Mixin::CONFIGSORT
Instance Attribute Summary
Attributes included from LogStash::Config::Mixin
Attributes inherited from Plugin
Instance Method Summary collapse
Methods inherited from Base
#clone, #flush, #initialize, #on_event, #teardown
Methods included from LogStash::Config::Mixin
Methods inherited from Plugin
#eql?, #finished, #finished?, #hash, #initialize, #inspect, lookup, #reload, #running?, #shutdown, #teardown, #terminating?, #to_s
Constructor Details
This class inherits a constructor from LogStash::Codecs::Base
Instance Method Details
#decode(data) ⇒ Object
13 14 15 |
# File 'lib/logstash/codecs/rubydebug.rb', line 13 def decode(data) raise "Not implemented" end |
#encode(data) ⇒ Object
18 19 20 |
# File 'lib/logstash/codecs/rubydebug.rb', line 18 def encode(data) @on_event.call(data.to_hash.awesome_inspect + "\n") end |
#register ⇒ Object
8 9 10 |
# File 'lib/logstash/codecs/rubydebug.rb', line 8 def register require "ap" end |