python写日志
import nnlog
import time
import os
log_path = os.path.join(baseFile.base_path, 'logs') # 写入log路径
log_name = os.path.join(log_path, time.strftime('%Y%m%d%H%M%S', time.localtime())) # 日志名称
log = nnlog.Logger(log_name, level='debug', backCount=5, when='D')