Module: Synchrolog::ExceptionLogger
- Defined in:
- lib/synchrolog/exception_logger.rb,
lib/synchrolog/exception_logger/http.rb,
lib/synchrolog/exception_logger/https.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.new(api_key, **args) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/synchrolog/exception_logger.rb', line 6 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 |