Skip to content

Instantly share code, notes, and snippets.

@agalea91
Created January 1, 2024 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agalea91/4a79f51795c533558a6ddfeb0f40afa2 to your computer and use it in GitHub Desktop.
Save agalea91/4a79f51795c533558a6ddfeb0f40afa2 to your computer and use it in GitHub Desktop.
Python logging setup (that doesn't suck)
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