【Python】python logging 日志
import logging
logging.basicConfig(
level = logging.DEBUG,
format = '%(asctime)s %(levelname)s %(process)d --- [%(threadName)s] %(filename)s %(funcName)s : %(lineno)d - %(message)s',
datefmt = '%Y-%m-%d %H:%M:%S',
)
logging.info("result more than one but select index 0 !")
“年轻时,我没受过多少系统教育,但什么书都读。读得最多的是诗,包括烂诗,我坚信烂诗早晚会让我邂逅好诗。”
by. 马尔克斯