Created
January 1, 2024 02:34
-
-
Save agalea91/4a79f51795c533558a6ddfeb0f40afa2 to your computer and use it in GitHub Desktop.
Python logging setup (that doesn't suck)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
logging.basicConfig(level=logging.INFO, format="%(asctime)s;%(levelname)s;%(message)s") | |
logger = logging.getLogger(Path().resolve().parent.name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment