Sha256: 1cd36aedaed2543505750e61509ac6c68763a4df0a3228625f27d34009c23bfa

Contents?: true

Size: 415 Bytes

Versions: 19

Compression:

Stored size: 415 Bytes

Contents

# encoding: UTF-8

require_relative 'base_middleware'

module GoodData
  module Bricks
    class STDOUTLoggingMiddleware < Bricks::Middleware
      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
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
gooddata-0.6.20 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.19 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.18 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.17 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.16 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.15 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.14 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.13 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.12 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.11 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.10 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.9 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.8 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.7 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.6 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.5 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.4 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.3 lib/gooddata/bricks/middleware/stdout_middleware.rb
gooddata-0.6.2 lib/gooddata/bricks/middleware/stdout_middleware.rb