Logger flush

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.

It’ll flush it immediately after each write.

Thanks Jules!