📅  最后修改于: 2022-03-11 14:47:22.842000             🧑  作者: Mango
root = logging.getLogger()
if root.handlers:
for handler in root.handlers:
root.removeHandler(handler)
logging.basicConfig(format='%(asctime)s %(message)s',level=logging.DEBUG)