Class: Rack::Logstasher::Logger

Inherits:
CommonLogger
  • Object
show all
Defined in:
lib/rack/logstasher/logger.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, logger, opts = {}) ⇒ Logger

Returns a new instance of Logger.



7
8
9
10
11
# File 'lib/rack/logstasher/logger.rb', line 7

def initialize(app, logger, opts = {})
  super(app, logger)
  @extra_request_headers = opts[:extra_request_headers] || {}
  @extra_response_headers = opts[:extra_response_headers] || {}
end