diff --git a/lib/httparty/logger/logger.rb b/lib/httparty/logger/logger.rb
index <HASH>..<HASH> 100644
--- a/lib/httparty/logger/logger.rb
+++ b/lib/httparty/logger/logger.rb
@@ -3,16 +3,19 @@ require 'httparty/logger/curl_logger'
 
 module HTTParty
   module Logger
+    def self.formatters
+      {
+        :curl => Logger::CurlLogger,
+        :apache => Logger::ApacheLogger
+      }
+    end
+
     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
+      logger_klass = formatters[formatter] || Logger::ApacheLogger
+      logger_klass.new(logger, level)
     end
   end
 end
abstract formatter selection so easy to override and add custom formatter