热门标签
更多>
搜索结果
查询Tags标签: setFormatter,共有 2条记录-
python日志
import loggingdef get_logger(filename): formatter = logging.Formatter( "[%(asctime)s] %(message)s",datefmt=%m/%d%I:%M:%S) logger = logging.getLogger() logger.setLevel(logging.INFO) fh = logging.FileHandler(filename,"w") …
2021/11/17 22:13:47 人评论 次浏览 -
python日志
import loggingdef get_logger(filename): formatter = logging.Formatter( "[%(asctime)s] %(message)s",datefmt=%m/%d%I:%M:%S) logger = logging.getLogger() logger.setLevel(logging.INFO) fh = logging.FileHandler(filename,"w") …
2021/11/17 22:13:47 人评论 次浏览