Created
June 17, 2018 13:24
-
-
Save marc-hanheide/57901450b03207bea05afd5520bb7ff7 to your computer and use it in GitHub Desktop.
colored logs example
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 coloredlogs | |
| import logging | |
| logging.debug("debug") | |
| logging.info("info") | |
| logging.warning("warning") | |
| logging.error("error") | |
| logging.fatal("fatal") | |
| logger = logging.Logger(__file__) | |
| coloredlogs.install(level='DEBUG', logger=logger) | |
| logger.debug("specific debug") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment