lib/ib-ruby/logger.rb in ib-ruby-0.5.14 vs lib/ib-ruby/logger.rb in ib-ruby-0.5.15
- old
+ new
@@ -2,10 +2,10 @@
# Add universally accessible log method/accessor into Object
def log *args
@@logger ||= Logger.new(STDOUT).tap do |logger|
logger.formatter = proc do |level, time, prog, msg|
- "#{time.strftime('%H:%M:%S.%3N')} #{msg}\n"
+ "#{time.strftime('%H:%M:%S.%N')} #{msg}\n"
end
logger.level = Logger::INFO
end
@@logger.tap do |logger|