【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  加州风尘  阅读(168)  评论(0)    收藏  举报