lib/review/logger.rb in review-4.2.0 vs lib/review/logger.rb in review-5.0.0

- old
+ new

@@ -1,16 +1,16 @@ require 'logger' module ReVIEW class Logger < ::Logger - def initialize(io = STDERR, progname: '--') + def initialize(io = $stderr, progname: '--') super(io, progname: progname) self.formatter = ->(severity, _datetime, name, msg) { "#{severity} #{name}: #{msg}\n" } end end def self.logger - @logger ||= ReVIEW::Logger.new(STDERR, progname: File.basename($PROGRAM_NAME, '.*')) + @logger ||= ReVIEW::Logger.new($stderr, progname: File.basename($PROGRAM_NAME, '.*')) end def self.logger=(logger) @logger = logger end