Class: Tennpipes::Logger::Rack
- Inherits:
-
Object
- Object
- Tennpipes::Logger::Rack
- Defined in:
- lib/tennpipes-base/logger.rb
Overview
Tennpipes::Logger::Rack forwards every request to an app
given, and logs a line in the Apache common log format to the logger
, or rack.errors by default.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, uri_root) ⇒ Rack
constructor
A new instance of Rack.
Constructor Details
#initialize(app, uri_root) ⇒ Rack
Returns a new instance of Rack.
444 445 446 447 |
# File 'lib/tennpipes-base/logger.rb', line 444 def initialize(app, uri_root) @app = app @uri_root = uri_root.sub(/\/$/,"") end |