Write Log in File and Print in Terminal in Python

Logging in Python is an old topic. It is quite important to check and debug Python programe, especially when there are something going wrong. In Linux, logging files are usually located in a special folder and rotated basing on time. Here is a powerful logging tool, loguru, a Python 3rd library. In this article, I will not cover it, but I recommend it if you are already familiar with the original Python logging system. Here, I will share some usual practices in my past Python projects.

Read more