标签:table level 图片 技术 code blob inner sage orm
import logging | |
LOG_FORMAT = "%(asctime)s=====%(levelname)s++++++%(message)s" | |
logging.basicConfig(filename="tulingxueyuan.log", level=logging.DEBUG, format=LOG_FORMAT) | |
logging.debug("This is a debug log.") | |
logging.info("This is a info log.") | |
logging.warning("This is a warning log.") | |
logging.error("This is a error log.") | |
logging.critical("This is a critical log.") | |
# 另外一种写法 | |
logging.log(logging.DEBUG, "This is a debug log.") | |
logging.log(logging.INFO, "This is a info log.") | |
logging.log(logging.WARNING, "This is a warning log.") | |
logging.log(logging.ERROR, "This is a error log.") | |
logging.log(logging.CRITICAL, "This is a critical log.") |
标签:table level 图片 技术 code blob inner sage orm
原文地址:https://www.cnblogs.com/huanhuandomingo/p/14601795.html