def log_action(params)
      case @config.log.to_s
      when 'simple'    then log_simple(params)
      when 'curl'      then log_curl(params)
      when 'curl_auth' then log_curl(params, true)
      end
    end
def log_action(params)
      case @config.log.to_s
      when 'simple'    then log_simple(params)
      when 'curl'      then log_curl(params)
      when 'curl_auth' then log_curl(params, true)
      end
    end
TODO: Should we convert it to string so 'cURL' will work also?