lib/ztk/logger.rb in ztk-1.6.14 vs lib/ztk/logger.rb in ztk-1.6.15

- old
+ new

@@ -93,10 +93,10 @@ called_by = parse_caller(caller[1+shift]) message = [message, progname].flatten.compact.join(": ") message = "%19s.%06d|%05d|%5s|%s%s\n" % [Time.now.utc.strftime("%Y-%m-%d|%H:%M:%S"), Time.now.utc.usec, Process.pid, SEVERITIES[severity], called_by, message] - @logdev.write(message) + @logdev.write(ZTK::ANSI.uncolor(message)) @logdev.respond_to?(:flush) and @logdev.flush true end