Sha256: 92d37c39cacadf0c64f94b83c81a7ea9cff5878bd117c9039acf5e6bf1472f36

Contents?: true

Size: 379 Bytes

Versions: 6

Compression:

Stored size: 379 Bytes

Contents

module Workers
  class LogProxy
    attr_accessor :logger

    def initialize(logger)
      @logger = logger
    end

    def debug(msg)
      @logger.debug(msg) if @logger
    end

    def info(msg)
      @logger.info(msg) if @logger
    end

    def warn(msg)
      @logger.warn(msg) if @logger
    end

    def error(msg)
      @logger.error(msg) if @logger
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
workers-0.0.6 lib/workers/log_proxy.rb
workers-0.0.5 lib/workers/log_proxy.rb
workers-0.0.4 lib/workers/log_proxy.rb
workers-0.0.3 lib/workers/log_proxy.rb
workers-0.0.2 lib/workers/log_proxy.rb
workers-0.0.1 lib/workers/log_proxy.rb