lib/fusuma/multi_logger.rb in fusuma-2.3.0 vs lib/fusuma/multi_logger.rb in fusuma-2.4.0
- old
+ new
@@ -17,9 +17,10 @@
def initialize
filepath = self.class.instance_variable_get('@filepath')
if filepath
logfile = File.new(filepath, 'a')
+ logfile.sync = true
super(logfile)
$stderr = logfile
else
super($stdout)
end