I have a python script that will write some general logging to the console. I've redirected this to a log file using the typical
python -u jbot.py | tee -a jbot.log. This works fine, I get console output and logfile input. However, when attempting to run this under screen:
screen python -u jbot.py | tee -a jbot.log
I don't get any of the logging output to my file. Once I've disconnected from
screen, does console output for that session get suppressed entirely, or is there a way I can still have logfile input from the stdout and stderr of my script?
I realize using a logging library would probably solve this (since I'm screening anyhow), but for now I want to stick with capturing console output (if possible) until I can properly integrate a logging module into my code.