Sha256: 730c6fb35baffd8031ea3011bd2d25c18460eb72d601e489e09b198291c7af26

Contents?: true

Size: 342 Bytes

Versions: 2

Compression:

Stored size: 342 Bytes

Contents

# TestDiff module
module TestDiff
  # adds logging to a class
  module Logging
    def log_info(*args)
      Config.logger.info(*args)
    end

    def log_debug(*args)
      Config.logger.debug(*args)
    end

    def log_error(*args)
      Config.logger.error(*args)
    end

    module_function :log_debug, :log_info, :log_error
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
test_diff-0.6.0 lib/test_diff/logging.rb
test_diff-0.5.0 lib/test_diff/logging.rb