Sha256: b034515f6362dc69838764f9fb680406bb065ea73ec676233e2453b6c168b644

Contents?: true

Size: 313 Bytes

Versions: 1

Compression:

Stored size: 313 Bytes

Contents

# encoding: utf-8
require "logstash/codecs/base"

class LogStash::Codecs::Noop < LogStash::Codecs::Base
  config_name "noop"

  milestone 1
  
  public
  def decode(data)
    yield data
  end # def decode

  public
  def encode(data)
    @on_event.call data
  end # def encode

end # class LogStash::Codecs::Noop

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logstash-lib-1.3.2 lib/logstash/codecs/noop.rb