I started playing with the logging module in Python recently. My output gets sent to a log file now. So far, so good. But I'd also like to be able to keep tabs on it in progress, without dealing with different logging file handlers in Python. And I like the general idea of knowing how to redirect things to my shell anyways.
So what I want is to have a way to issue
python myscript.py foo bar maybepipe something from the shell, see that log file being created line by line, and still have my log file when finished.
I found Read a file that's actively being written, but I am not sure how the answers provided within translate to this case. Anybody have any suggestions?