Skip to content

Instantly share code, notes, and snippets.

@wcDogg
Created January 21, 2023 04:39
Show Gist options
  • Save wcDogg/1d8a6c2c9d151484e1a891213211fe41 to your computer and use it in GitHub Desktop.
Save wcDogg/1d8a6c2c9d151484e1a891213211fe41 to your computer and use it in GitHub Desktop.

Python: Simple Logging

# module.py
import logging
logging.basicConfig(level="DEBUG", format='%(asctime)s : %(levelname)s : %(name)s : %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
log = logging.getLogger(__name__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment