I have a Julia script that has a bunch of println
statements interleaved some heavy computation functions. I typically run such scripts, redirect to a file, and then do tail -f
to see what’s going on. It appears that the output is buffered. I tried to make it flush but it doesn’t work… What’s the right way to do this?
My logging function:
log(x...) = println(now(), " ", join(x, " ")...); flush(STDOUT)