lib/timber/logger.rb in timberio-1.0.2 vs lib/timber/logger.rb in timberio-1.0.3

- old
+ new

@@ -112,11 +112,10 @@ def call(severity, time, progname, msg) log_entry = build_log_entry(severity, time, progname, msg) metadata = log_entry.to_json(:except => [:message]) # use << for concatenation for performance reasons - puts msg - log_entry.message << " " << METADATA_CALLOUT << " " << metadata << "\n" + log_entry.message.gsub("\n", "\\n") << " " << METADATA_CALLOUT << " " << metadata << "\n" end end # Creates a new Timber::Logger instances. Accepts the same arguments as `::Logger.new`. # The only difference is that it default the formatter to {HybridFormatter}. Using \ No newline at end of file