Class: LoggerFacade::Middleware::Rack

Inherits:
Rack::CommonLogger
  • Object
show all
Defined in:
lib/logger_facade/middleware/rack.rb

Instance Method Summary collapse

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