Sha256: 4af37995bacc8b640d0b2fc0a920fef6798ad54f6d52110da9d63043871be525

Contents?: true

Size: 379 Bytes

Versions: 3

Compression:

Stored size: 379 Bytes

Contents

require 'httparty/logger/apache_logger'
require 'httparty/logger/curl_logger'

module HTTParty
  module Logger
    def self.build(logger, level, formatter)
      level  ||= :info
      formatter ||= :apache

      case formatter
      when :curl
        Logger::CurlLogger.new(logger, level)
      else
        Logger::ApacheLogger.new(logger, level)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
httsoiree-0.13.3 lib/httparty/logger/logger.rb
httparty-0.13.3 lib/httparty/logger/logger.rb
httparty-0.13.2 lib/httparty/logger/logger.rb