Class: STDOUTLoggingMiddleware
- Inherits:
-
Gooddata::Bricks::Middleware
- Object
- Gooddata::Bricks::Middleware
- STDOUTLoggingMiddleware
- Defined in:
- lib/gooddata/bricks/middleware/stdout_middleware.rb
Instance Method Summary collapse
Methods inherited from Gooddata::Bricks::Middleware
Methods included from Gooddata::Bricks::Utils
Constructor Details
This class inherits a constructor from Gooddata::Bricks::Middleware
Instance Method Details
#call(params) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/gooddata/bricks/middleware/stdout_middleware.rb', line 3 def call(params) logger = Logger.new(STDOUT) params[:logger] = logger logger.info("Pipeline starting with STDOUT logger") returning(@app.call(params)) do logger.info("Pipeline ending") end end |