Sha256: f46d2a0e3ba62519c6005ff5cce99c714f4eb48265010da002b3a6a8a1c50bca

Contents?: true

Size: 376 Bytes

Versions: 20

Compression:

Stored size: 376 Bytes

Contents

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

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

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

Version data entries

20 entries across 19 versions & 7 rubygems

Version Path
alloy_sdk-0.1.0 vendor/bundle/ruby/3.0.0/gems/httparty-0.13.1/lib/httparty/logger/logger.rb
alloy_sdk-0.1.0 vendor/bundle/ruby/2.6.0/gems/httparty-0.13.1/lib/httparty/logger/logger.rb
allegro_api_client-0.0.9 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/logger/logger.rb
allegro_api_client-0.0.8 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/logger/logger.rb
allegro_api_client-0.0.7 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/logger/logger.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/logger/logger.rb
allegro_api_client-0.0.6 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/logger/logger.rb
allegro_api_client-0.0.5 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/logger/logger.rb
allegro_api_client-0.0.4 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/logger/logger.rb
allegro_api_client-0.0.3 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/logger/logger.rb
allegro_api_client-0.0.2 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/logger/logger.rb
allegro_api_client-0.0.1 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/logger/logger.rb
httsoiree-0.13.1.1 lib/httparty/logger/logger.rb
httsoiree-0.13.1 lib/httparty/logger/logger.rb
httparty-enterprise-edition-0.13.1.1 lib/httparty/logger/logger.rb
httparty-enterprise-edition-0.13.1 lib/httparty/logger/logger.rb
httparty-0.13.1 lib/httparty/logger/logger.rb
yoyle439587298-0.13.0 lib/httparty/logger/logger.rb
httparty-0.13.0 lib/httparty/logger/logger.rb
httparty-0.12.0 lib/httparty/logger/logger.rb