Class: Rack::ActionLogger::EmitAdapter::FluentAdapter

Inherits:
Base
  • Object
show all
Defined in:
lib/rack/action_logger/emit_adapter/fluent_adapter.rb

Class Method Summary collapse

Methods inherited from Base

wrap

Class Method Details

.emit(hash) ⇒ Object



5
6
7
8
9
# File 'lib/rack/action_logger/emit_adapter/fluent_adapter.rb', line 5

def self.emit(hash)
  tag = hash[:tag] ? hash[:tag] : Rack::ActionLogger.configuration.default_tag
  hash = wrap(hash)
  Fluent::Logger.post(tag, hash)
end