Sha256: b91fc4e9f822f1df4936d8a9dbe02daa65922cb6eda8d27864c0aab1e6d1d9eb

Contents?: true

Size: 375 Bytes

Versions: 4

Compression:

Stored size: 375 Bytes

Contents

require 'synchrolog/logger/https'
require 'synchrolog/logger/http'

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
synchrolog-ruby-0.1.7 lib/synchrolog/logger.rb
synchrolog-ruby-0.1.6 lib/synchrolog/logger.rb
synchrolog-ruby-0.1.5 lib/synchrolog/logger.rb
synchrolog-ruby-0.1.4 lib/synchrolog/logger.rb