class Rack::ActionLogger::EmitAdapter::FluentAdapter

Public Class Methods

emit(hash) click to toggle source
# 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