Class: Racknga::Middleware::Log::Logger
- Inherits:
-
Object
- Object
- Racknga::Middleware::Log::Logger
- Defined in:
- lib/racknga/middleware/log.rb
Instance Method Summary (collapse)
-
- (Logger) initialize(database)
constructor
A new instance of Logger.
- - (Object) log(tag, path, options = {})
Constructor Details
- (Logger) initialize(database)
A new instance of Logger
101 102 103 104 |
# File 'lib/racknga/middleware/log.rb', line 101 def initialize(database) @database = database @entries = @database.entries end |
Instance Method Details
- (Object) log(tag, path, options = {})
106 107 108 109 110 |
# File 'lib/racknga/middleware/log.rb', line 106 def log(tag, path, ={}) @entries.add(.merge(:time_stamp => Time.now, :tag => tag, :path => path)) end |