lib/logging/bblogging.rb in bblib-0.4.1 vs lib/logging/bblogging.rb in bblib-1.0.2

- old
+ new

@@ -1,5 +1,6 @@ +require :logger.to_s unless BBLib::in_opal? module BBLib def self.logger @logger ||= default_logger @@ -10,10 +11,10 @@ log.level = ::Logger::INFO log.formatter = proc do |severity, datetime, progname, msg| if msg.is_a?(Exception) msg = msg.inspect + "\n\t" + msg.backtrace.join("\n\t") end - "[#{datetime}] #{severity} - #{msg}\n" + "[#{datetime}] #{severity} - #{msg.to_s.chomp}\n" end log.datetime_format = '%Y-%m-%d %H:%M:%S' log end