logging
最后更新于
最后更新于
import logging
LOG_FORMAT = "[%(asctime)s %(funcName)s() %(lineno)i] [%(levelname)s] %(message)s"
DATE_FORMAT = "%m/%d/%Y %H:%M:%S %p"
logging.basicConfig(level=logging.DEBUG, filename="i.log", format=LOG_FORMAT, datefmt=DATE_FORMAT)