Last active
August 29, 2015 14:15
-
-
Save phaustin/f17a08218be11873a00d to your computer and use it in GitHub Desktop.
logging
This file contains hidden or 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 | |
| logging.basicConfig() | |
| my_log=logging.getLogger('my_logger') | |
| my_log.setLevel(logging.WARN) | |
| my_log.propagate=True | |
| my_log.propagate=False | |
| try: | |
| int('A') | |
| except Exception as ex: | |
| my_log.exception(ex) | |
| my_log.info(len(raw_lines)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment