Class: LoggerFacade::Middleware::Rack
- Inherits:
-
Rack::CommonLogger
- Object
- Rack::CommonLogger
- LoggerFacade::Middleware::Rack
- Defined in:
- lib/logger_facade/middleware/rack.rb
Instance Method Summary collapse
-
#initialize(app, logger = nil) ⇒ Rack
constructor
A new instance of Rack.
Constructor Details
#initialize(app, logger = nil) ⇒ Rack
Returns a new instance of Rack.
3 4 5 6 7 |
# File 'lib/logger_facade/middleware/rack.rb', line 3 def initialize(app, logger=nil) log = LoggerFacade::Manager.get_logger("RackLogger") @format = '%s "%s %s" %d %s %0.4f' super(app, log) end |