Class: Rack::Timing::Base
Instance Method Summary collapse
-
#initialize(app, logger = nil) ⇒ Base
constructor
A new instance of Base.
Methods included from Notify
Constructor Details
#initialize(app, logger = nil) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 12 13 |
# File 'lib/timing/base.rb', line 7 def initialize(app, logger = nil) @logger = logger @app = app @instrument_name = "rack.timing" @logger = ::Logger.new($stdout) if @logger.nil? # @logger.formatter = L2MetFormatter.new end |