Class: Rack::Timing::Base

Inherits:
Object
  • Object
show all
Includes:
Notify
Defined in:
lib/timing/base.rb

Direct Known Subclasses

End, Reporter, Start

Instance Method Summary collapse

Methods included from Notify

#notify, #should_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