python
import logbook
logbook.StreamHandler(sys.stdout).push_application()
logbook.set_datetime_format("local")
logbook.set_level(logbook.DEBUG)
logbook.debug("Debug message")
logbook.info("Info message")
logbook.warning("Warning message")
python
import logging
logging.basicConfig(level=logging.DEBUG)
logging.debug("Debug message")
logging.info("Info message")
logging.warning("Warning message")