Sha256: 65da3022e7d1615d50307ffb1f244ace9e1c3b7d5169db2d031f250b47339e14

Contents?: true

Size: 233 Bytes

Versions: 26

Compression:

Stored size: 233 Bytes

Contents

require 'logger'
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

26 entries across 26 versions & 1 rubygems

Version Path
datapimp-1.2.11 lib/datapimp/logging.rb
datapimp-1.2.10 lib/datapimp/logging.rb
datapimp-1.2.9 lib/datapimp/logging.rb
datapimp-1.2.8 lib/datapimp/logging.rb
datapimp-1.2.7 lib/datapimp/logging.rb
datapimp-1.2.6 lib/datapimp/logging.rb
datapimp-1.2.5 lib/datapimp/logging.rb
datapimp-1.2.4 lib/datapimp/logging.rb
datapimp-1.2.3 lib/datapimp/logging.rb
datapimp-1.2.2 lib/datapimp/logging.rb
datapimp-1.2.1 lib/datapimp/logging.rb
datapimp-1.2.0 lib/datapimp/logging.rb
datapimp-1.1.1 lib/datapimp/logging.rb
datapimp-1.1.0 lib/datapimp/logging.rb
datapimp-1.0.29 lib/datapimp/logging.rb
datapimp-1.0.28 lib/datapimp/logging.rb
datapimp-1.0.27 lib/datapimp/logging.rb
datapimp-1.0.26 lib/datapimp/logging.rb
datapimp-1.0.25 lib/datapimp/logging.rb
datapimp-1.0.24 lib/datapimp/logging.rb