Skip to content

Instantly share code, notes, and snippets.

@eguven
Last active December 15, 2020 17:21
Show Gist options
  • Save eguven/a35be35e216f1a275ea0ffcab9ea12b7 to your computer and use it in GitHub Desktop.
Save eguven/a35be35e216f1a275ea0ffcab9ea12b7 to your computer and use it in GitHub Desktop.
logging default
import logging
# more verbose %(asctime)s %(levelname)s [%(module)s.%(funcName)s():%(lineno)d] %(message)s
logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s')
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment