Last active
December 15, 2020 17:21
-
-
Save eguven/a35be35e216f1a275ea0ffcab9ea12b7 to your computer and use it in GitHub Desktop.
logging default
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 | |
# 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