Created
December 2, 2018 22:33
-
-
Save ricekab/d7bf8dd551b46e7d0841a2aa87eb93ff to your computer and use it in GitHub Desktop.
Python logging clarification
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 | |
logger_one = logging.getLogger('example') | |
logger_two = logging.getLogger('example') | |
assert logger_one is logger_two # True because they are the same instance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment