Class: Rails::Rack::LogTailer

Inherits:
Object
  • Object
show all
Defined in:
lib/lumberjack_heroku_device.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, log = nil) ⇒ LogTailer

Returns a new instance of LogTailer.



20
21
22
# File 'lib/lumberjack_heroku_device.rb', line 20

def initialize(app, log = nil)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



24
25
26
27
28
# File 'lib/lumberjack_heroku_device.rb', line 24

def call(env)
  response = @app.call(env)
  tail!
  response
end

#tail!Object



30
31
32
# File 'lib/lumberjack_heroku_device.rb', line 30

def tail!
  $stdout
end