Sha256: c6e650a079edc1017a0538f72f161571d875b8d4261a25ae46ecc05cb66b0898

Contents?: true

Size: 373 Bytes

Versions: 14

Compression:

Stored size: 373 Bytes

Contents

require 'fluent/plugin/formatter'

module Fluent
  module Plugin
    class TestFormatter < Formatter
      Fluent::Plugin.register_formatter('test', self)

      def configure(conf)
        super
      end

      def format(tag, time, record)
        output = {
          "wrapped" => true,
          "record" => record
        }
        output
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
fluent-plugin-out-http-1.3.4 test/plugin/script/plugin/formatter_test.rb
fluent-plugin-out-kivera-1.0.3 test/plugin/script/plugin/formatter_test.rb
fluent-plugin-out-kivera-1.0.2 test/plugin/script/plugin/formatter_test.rb
fluent-plugin-out-kivera-1.0.1 test/plugin/script/plugin/formatter_test.rb
fluent-plugin-out-http-1.3.3 test/plugin/script/plugin/formatter_test.rb
fluent-plugin-out-http-1.3.2 test/plugin/script/plugin/formatter_test.rb
fluent-plugin-out-http-1.3.1 test/plugin/script/plugin/formatter_test.rb
fluent-plugin-out-http-1.2.0 test/plugin/script/plugin/formatter_test.rb
fluent-plugin-gimbal-out-http-1.1.5.pre.1 test/plugin/script/plugin/formatter_test.rb
fluent-plugin-gimbal-out-http-1.1.5 test/plugin/script/plugin/formatter_test.rb
fluent-plugin-out-http-1.1.7 test/plugin/script/plugin/formatter_test.rb
fluent-plugin-out-http-1.1.6 test/plugin/script/plugin/formatter_test.rb
fluent-plugin-out-http-1.1.5 test/plugin/script/plugin/formatter_test.rb
fluent-plugin-out-http-1.1.4 test/plugin/script/plugin/formatter_test.rb