Sha256: e76c5266f80657f01729c7b6d2b4ae2e8dc1f286c9ac776e8486366a0703648a

Contents?: true

Size: 225 Bytes

Versions: 2

Compression:

Stored size: 225 Bytes

Contents

require 'rack/action_logger/emit_adapter/base'

module Rack::ActionLogger::EmitAdapter
  class LoggerAdapter < Base
    def self.emit(hash)
      hash = wrap(hash)
      Rack::ActionLogger.logger.info(hash)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rack-action_logger-0.1.1 lib/rack/action_logger/emit_adapter/logger_adapter.rb
rack-action_logger-0.1.0 lib/rack/action_logger/emit_adapter/logger_adapter.rb