Skip to content

Instantly share code, notes, and snippets.

@marc-hanheide
Created June 17, 2018 13:24
Show Gist options
  • Select an option

  • Save marc-hanheide/57901450b03207bea05afd5520bb7ff7 to your computer and use it in GitHub Desktop.

Select an option

Save marc-hanheide/57901450b03207bea05afd5520bb7ff7 to your computer and use it in GitHub Desktop.
colored logs example
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