Sha256: 3b97fc2b4dabf2bfec9a8064a0f58121b91e09ed835b9701eb4e0a524534d4e7

Contents?: true

Size: 302 Bytes

Versions: 13

Compression:

Stored size: 302 Bytes

Contents

require 'rack/action_logger/emit_adapter/base'

module Rack::ActionLogger::EmitAdapter
  class FluentAdapter < Base
    def self.emit(hash)
      tag = hash[:tag] ? hash[:tag] : Rack::ActionLogger.configuration.default_tag
      hash = wrap(hash)
      Fluent::Logger.post(tag, hash)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rack-action_logger-0.4.0 lib/rack/action_logger/emit_adapter/fluent_adapter.rb
rack-action_logger-0.3.0 lib/rack/action_logger/emit_adapter/fluent_adapter.rb
rack-action_logger-0.2.0 lib/rack/action_logger/emit_adapter/fluent_adapter.rb
rack-action_logger-0.1.9 lib/rack/action_logger/emit_adapter/fluent_adapter.rb
rack-action_logger-0.1.8 lib/rack/action_logger/emit_adapter/fluent_adapter.rb
rack-action_logger-0.1.7 lib/rack/action_logger/emit_adapter/fluent_adapter.rb
rack-action_logger-0.1.6 lib/rack/action_logger/emit_adapter/fluent_adapter.rb
rack-action_logger-0.1.5 lib/rack/action_logger/emit_adapter/fluent_adapter.rb
rack-action_logger-0.1.4 lib/rack/action_logger/emit_adapter/fluent_adapter.rb
rack-action_logger-0.1.3 lib/rack/action_logger/emit_adapter/fluent_adapter.rb
rack-action_logger-0.1.2 lib/rack/action_logger/emit_adapter/fluent_adapter.rb
rack-action_logger-0.1.1 lib/rack/action_logger/emit_adapter/fluent_adapter.rb
rack-action_logger-0.1.0 lib/rack/action_logger/emit_adapter/fluent_adapter.rb