Class: Magpie::Mothlog
- Inherits:
-
Object
- Object
- Magpie::Mothlog
- Defined in:
- lib/middles/mothlog-bat.rb
Instance Method Summary (collapse)
- - (Object) call(env)
-
- (Mothlog) initialize(app)
constructor
A new instance of Mothlog.
Constructor Details
- (Mothlog) initialize(app)
A new instance of Mothlog
5 6 7 |
# File 'lib/middles/mothlog-bat.rb', line 5 def initialize(app) @app = app end |
Instance Method Details
- (Object) call(env)
9 10 11 12 13 14 |
# File 'lib/middles/mothlog-bat.rb', line 9 def call(env) status, header, body = @app.call(env) log(env, Logger.new($stderr)) #log(env, @logger) if @logger [status, header, body] end |