import coloredlogs, logging

# Create a logger object.
log = logging.getLogger(__name__)

# By default the install() function installs a handler on the root logger,
# this means that log messages from your code and log messages from the
# libraries that you use will all show up on the terminal.
coloredlogs.install(level='DEBUG')

# If you don't want to see log messages from libraries, you can pass a
# specific logger object to the install() function. In this case only log
# messages originating from that logger will show up on the terminal.
#coloredlogs.install(level='DEBUG', logger=logger)

# Some examples.
"""
log.debug("this is a debugging message")
log.info("this is an informational message")
log.warning("this is a warning message")
log.error("this is an error message")
log.critical("this is a critical message")
"""