Logger flush


#1

I’ve found the FileLogger class to be useful, both here in the lab and out in the field. But I can’t quite figure out when the data are truly flushed to disk. While the deferred writes that appear to happen are generally fine, there are occasions that I’d like to guarantee that a result has been written. There isn’t an explicit fflush (showing my age here), so I wonder if there’s a way to ensure data get to the file.


#2

It’ll flush it immediately after each write.


#3

Thanks Jules!