in reply to Print log at runtime instead of dumping all at once later
In this case, the best solution that I know is to open the target file for append, print and close the log file each time you write something to it. This might seem inefficient, and it is indeed not very efficient, but if it is just a log file not getting too much input, it is OK.
But, admittedly, this is very OS specific, I don't need that under Unix or Linux (and probably not under Windows, as far as I know).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Print log at runtime instead of dumping all at once later
by Technext (Acolyte) on Jul 02, 2015 at 03:56 UTC | |
by Laurent_R (Canon) on Jul 02, 2015 at 06:35 UTC | |
by Technext (Acolyte) on Jul 02, 2015 at 17:08 UTC |