📜  LOGGING - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:01.644000             🧑  作者: Mango

代码示例3
import logging
LOG_FILENAME = 'example.log'
logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG)

logging.debug('This message should go to the log file')