Python shell log command not showing up in docker/kubernetes pod
Python shell log command not showing up in docker/kubernetes pod I ran the following code in the python shell but it is not showing up the docker/kubernetes pod logs: import logging logging.basicConfig(level=logging.INFO) logging.info("Test") This is a simplified version of what I am trying to do which is essentially run one-off scripts/commands in the python shell and have logs to show up. How do I go about getting this to work? Is it because the shell I opened up is not attached to the process that creates the logs? I'm currently using Docker and Kubernetes. Thanks! You ran this in a shell? If so then it wont be in the logs. The PID 1 stdout only is sent to logs – Tarun Lalwani Jul 1 at 9:29 What @TarunLalwani said is 100% true, but you can also cheat and tee the output into /proc/1/fd/1 to have...