Flushing the contents to log file when using set_report_default_file

Hi

I am redirecting the UVM_INFO messages to a log file using set_report_default_file.
I see that the contents are getting printed but not until simulation ends.
Is there a way to flush the buffered output to the file ? Something similar to fflush ?

Thanks
Venkatesh

In reply to Venkatesh Maddibande Sheshadrivasan:

This is a simulator problem. The simulators do not print each line seperately to the logfile. They put them to a buffer and the the buffer will be flushed to the logfile.
If you want to do this the question when do you want to do it. A good point would be after the simulationb has stopped. But before it is near impossible.