Class: Loggun::Modifiers::OutgoingHttp

Inherits:
Base
  • Object
show all
Defined in:
lib/loggun/modifiers/outgoing_http.rb

Instance Method Summary collapse

Methods inherited from Base

#config, use

Instance Method Details

#applyObject



7
8
9
10
11
12
13
14
15
# File 'lib/loggun/modifiers/outgoing_http.rb', line 7

def apply
  return unless defined?(HTTP)

  ::HTTP.default_options = {
    features: {
      logging: { logger: BlockLogger }
    }
  }
end