lib/lorekeeper/simple_logger.rb in lorekeeper-2.2.1 vs lib/lorekeeper/simple_logger.rb in lorekeeper-2.3.0

- old
+ new

@@ -26,10 +26,10 @@ }.freeze # \e[colorm sets a color \e[0m resets all properties def log_data(severity, message) color = SEVERITY_TO_COLOR_MAP[severity] - @iodevice.write("\e[#{color}m#{message.gsub('\n', "\n").gsub('\t', "\t")}\e[0m\n") + write("\e[#{color}m#{message.gsub('\n', "\n").gsub('\t', "\t")}\e[0m\n") end def inspect "Lorekeeper Simple logger. IO: #{@file.inspect}" end