Sha256: 9d23c05bb135f8689e022f505c29303d3b7a4200a9067b07d0a669f61b52ab90
Contents?: true
Size: 283 Bytes
Versions: 2
Compression:
Stored size: 283 Bytes
Contents
require "logger" # Hack in log method into Object def log @@log ||= Logger.new(STDOUT).tap do |log| log.formatter = proc do |level, time, prog, msg| "#{time.strftime('%m-%d %H:%M:%S.%3N')}-#{level[0]}: #{msg}\n" end log.level = Logger::WARN end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ib-ruby-0.5.13 | lib/ib-ruby/logger.rb |
ib-ruby-0.5.12 | lib/ib-ruby/logger.rb |