lib/daemonizer.rb in daemonizer-0.3.6 vs lib/daemonizer.rb in daemonizer-0.3.7
- old
+ new
@@ -39,10 +39,11 @@
outputter.formatter = PatternFormatter.new :pattern => "%d - %l %g - %m"
@@logger.outputters = outputter
@@logger.level = INFO
end
- def self.reopen_log_file(name, log_file)
+ def self.reopen_log_file
+ log_file = @@logger.outputters.first.filename
@@logger.outputters.each do |o|
o.flush
o.close
end
outputter = FileOutputter.new('log', :filename => log_file, :trunc => false)