标签:config 设置 strong debug erro cal pre imp div
1 demo
import logging # log level: # DEBUG # INFO # Warning # Error # CRITICAL
logging.basicConfig(filename = "test.log", level=logging.DEBUG) // 配置: 设置log的输出文件和级别 logging.error("error message") logging.warning("warning message") logging.info("info message")
2
标签:config 设置 strong debug erro cal pre imp div
原文地址:https://www.cnblogs.com/liufei1983/p/9867610.html