lib/semantic_logger/appender/logger.rb in semantic_logger-0.1.0 vs lib/semantic_logger/appender/logger.rb in semantic_logger-0.2.0

- old
+ new

@@ -49,10 +49,10 @@ message << " -- " << log.payload.inspect end end str = "#{log.time.strftime("%Y-%m-%d %H:%M:%S")}.#{"%03d" % (log.time.usec/1000)} #{log.level.to_s[0..0].upcase} [#{$$}:#{log.thread_name}] #{log.name} -- #{message}\n" - str << " (#{log.duration}ms)" if log.duration + str << " (#{'%.1f' % log.duration}ms)" if log.duration str end end # Pass log calls to the underlying Rails, log4j or Ruby logger