Created
May 15, 2016 01:16
-
-
Save jmuhlich/38a88505e4cf0dc5bec33ba828734947 to your computer and use it in GitHub Desktop.
python logging minimal example
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 = logging.getLogger(__name__) | |
def foo(a, b): | |
logger.info('foo(%s, %s)', a, b) |
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 | |
import mymod | |
logging.basicConfig(level=logging.INFO) | |
mymod.foo("hello world!", 42) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment