Sha256: 845799013db48a1116ffcab0b3ded5561f4c762e976fe2b085c77c1d575f0835

Contents?: true

Size: 429 Bytes

Versions: 3

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true
module Ragent
  module Logging
    def self.logger=(logger)
      @logger = logger
    end

    def self.logger
      @logger
    end

    def logger
      Ragent::Logging.logger
    end

    def debug(str)
      logger.debug(str)
  end

    def warn(str)
      logger.warn(str)
    end

    def info(str)
      logger.info(str)
    end

    def error(str)
      logger.error(str)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ragent-0.0.6 lib/ragent/logging.rb
ragent-0.0.5 lib/ragent/logging.rb
ragent-0.0.4 lib/ragent/logging.rb