Sha256: bac2d55c2182656e42f4316e2d0d9346ee207c63910804e8f53d36012ce692ef

Contents?: true

Size: 277 Bytes

Versions: 63

Compression:

Stored size: 277 Bytes

Contents

module KnapsackPro
  class LoggerWrapper
    def initialize(logger)
      @logger = logger
    end

    private

    attr_reader :logger

    def method_missing(m, *args, &block)
      args[0] = "[knapsack_pro] #{args[0]}"
      logger.send(m, *args, &block)
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
knapsack_pro-1.0.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.57.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.56.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.55.2 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.55.1 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.55.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.54.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.53.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.52.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.51.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.50.1 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.50.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.49.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.48.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.47.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.46.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.45.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.44.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.43.0 lib/knapsack_pro/logger_wrapper.rb
knapsack_pro-0.42.0 lib/knapsack_pro/logger_wrapper.rb