Class: LogStash::Codecs::Noop

Inherits:
Base show all
Defined in:
lib/logstash/codecs/noop.rb

Constant Summary

Constants included from LogStash::Config::Mixin

LogStash::Config::Mixin::CONFIGSORT

Instance Attribute Summary

Attributes included from LogStash::Config::Mixin

#config, #original_params

Attributes inherited from Plugin

#logger, #params

Instance Method Summary collapse

Methods inherited from Base

#clone, #flush, #initialize, #on_event, #teardown

Methods included from LogStash::Config::Mixin

#config_init, included

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) {|data| ... } ⇒ Object

Yields:

  • (data)


10
11
12
# File 'lib/logstash/codecs/noop.rb', line 10

def decode(data)
  yield data
end

#encode(data) ⇒ Object



15
16
17
# File 'lib/logstash/codecs/noop.rb', line 15

def encode(data)
  @on_event.call data
end