Sha256: f24f1078652b78634bfbd0659912fb0e3837e6382c3e62c3d649b13112fc2c0c

Contents?: true

Size: 277 Bytes

Versions: 3

Compression:

Stored size: 277 Bytes

Contents

require 'logger'

#
# A convenient logger.
#
# define Log yourself to prevent its creation
#
::Log = Logger.new($stderr) unless defined?(::Log)

def Log.dump *args
  self.debug([
      args.map(&:inspect),
      caller.first
    ].join("\t"))
end unless Log.respond_to?(:dump)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gorillib-0.1.11 lib/gorillib/logger/log.rb
gorillib-0.1.9 lib/gorillib/logger/log.rb
gorillib-0.1.8 lib/gorillib/logger/log.rb