lib/lumberjack/logger.rb in lumberjack-1.0.5 vs lib/lumberjack/logger.rb in lumberjack-1.0.6

- old
+ new

@@ -65,11 +65,11 @@ self.level = options.delete(:level) || INFO self.progname = options.delete(:progname) max_flush_seconds = options.delete(:flush_seconds).to_f @device = open_device(device, options) - @formatter = Formatter.new + @_formatter = Formatter.new @lock = Mutex.new @last_flushed_at = Time.now @silencer = true create_flusher_thread(max_flush_seconds) if max_flush_seconds > 0 @@ -108,10 +108,10 @@ message = progname progname = nil end end - message = @formatter.format(message) + message = @_formatter.format(message) progname ||= self.progname entry = LogEntry.new(time, severity, message, progname, $$, Lumberjack.unit_of_work_id) begin device.write(entry) rescue => e