Module: HttpEventLogger

Defined in:
lib/http_event_logger.rb,
lib/http_event_logger/logger.rb,
lib/http_event_logger/version.rb,
lib/http_event_logger/configuration.rb,
lib/http_event_logger/event/headers.rb,
lib/http_event_logger/event/request.rb,
lib/http_event_logger/event/observer.rb,
lib/http_event_logger/event/response.rb,
lib/http_event_logger/event/connection.rb

Defined Under Namespace

Modules: Event Classes: Configuration, Logger

Constant Summary collapse

VERSION =
"0.1.0".freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject (readonly)

Returns the value of attribute configuration


27
28
29
# File 'lib/http_event_logger.rb', line 27

def configuration
  @configuration
end

Class Method Details

.configure(&block) ⇒ Object


29
30
31
32
# File 'lib/http_event_logger.rb', line 29

def configure(&block)
  @configuration = HttpEventLogger::Configuration.new
  block.call @configuration
end

.loggerObject


34
35
36
# File 'lib/http_event_logger.rb', line 34

def logger
  @configuration.logger
end