lib/lumberjack/logger.rb in lumberjack-1.0.12 vs lib/lumberjack/logger.rb in lumberjack-1.0.13

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literals: true + module Lumberjack # Logger is a thread safe logging object. It has a compatible API with the Ruby # standard library Logger class, the Log4r gem, and ActiveSupport::BufferedLogger. # # === Example @@ -63,10 +65,9 @@ self.progname = options.delete(:progname) max_flush_seconds = options.delete(:flush_seconds).to_f @device = open_device(device, options) @_formatter = Formatter.new - @lock = Mutex.new @last_flushed_at = Time.now @silencer = true create_flusher_thread(max_flush_seconds) if max_flush_seconds > 0 end