I need to print the logs from my flask app in my Kubernetes pod.
Actually my Flask app renders logs in a file.config file and I can access it with the command : kubectl exec -it podname /bin/bash
and all the logs are not written in this file.
How can I do to have the logs (GET, error messages, print...) directly when I use the command : kubectl logs podname
Thank you