Sha256: 69400725b0bc12fd9e6628e54f5dde92472ccbba99f402ee785ee69a71804990

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

require 'synchrolog/exception_logger/https'
require 'synchrolog/exception_logger/http'

module Synchrolog
  module ExceptionLogger
    def self.new(api_key, **args)
      args[:host] ||= 'https://input.synchrolog.com'
      if /^https:\/\//.match(args[:host])
        Synchrolog::ExceptionLogger::HTTPS.new(api_key, args)
      else
        Synchrolog::ExceptionLogger::HTTP.new(api_key, args)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
synchrolog-ruby-0.1.7 lib/synchrolog/exception_logger.rb