Class: Rack::Logstasher::Logger
- Inherits:
-
CommonLogger
- Object
- CommonLogger
- Rack::Logstasher::Logger
- Defined in:
- lib/rack/logstasher/logger.rb
Instance Method Summary collapse
-
#initialize(app, logger, opts = {}) ⇒ Logger
constructor
A new instance of Logger.
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 |