tikzDevice, I want to communicate with a LaTeX process by sending input (generated LaTeX code) to its
stdin and parsing output that is written using
\immediate\write. In some cases I need also to look at the log file, but I have noticed that it seems to be buffered: When I start
pdflatex at the console and type a document, the log file
texput.log doesn't seem to be written until I end the document.
Is there a way to flush the buffers for the log file, so that everything accumulated so far is written?