Class: Rails::Rack::LogTailer
- Inherits:
-
Object
- Object
- Rails::Rack::LogTailer
- Defined in:
- lib/lumberjack_heroku_device.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, log = nil) ⇒ LogTailer
constructor
A new instance of LogTailer.
- #tail! ⇒ Object
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 |