Sha256: 2f0f5ef637d6a411acde3ab759e60073ef0f37f2ad6bab6f978d4798b1743c31

Contents?: true

Size: 216 Bytes

Versions: 6

Compression:

Stored size: 216 Bytes

Contents

module Datapimp
  module Logging
    def log(*args)
      logger.send(:info, *args)
    end

    def logger= value
      @logger = value
    end

    def logger
      @logger ||= Logger.new(STDOUT)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
datapimp-1.0.13 lib/datapimp/logging.rb
datapimp-1.0.12 lib/datapimp/logging.rb
datapimp-1.0.11 lib/datapimp/logging.rb
datapimp-1.0.10 lib/datapimp/logging.rb
datapimp-1.0.9 lib/datapimp/logging.rb
datapimp-1.0.8 lib/datapimp/logging.rb