【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 !")

posted @ 2019-06-12 16:51  加州水果  阅读(164)  评论(0编辑  收藏  举报