【发布时间】:2022-08-23 17:10:32
【问题描述】:
from brightway2 import *
projects.set_current(\"default\")
import logging
logging.basicConfig(level=logging.DEBUG,
filename=\"log_import.txt\",
filemode=\"a\",
format=\'%(asctime)s - %(levelname)s - %(message)s\')
logging.debug(\"La fonction a bien été exécutée\")
logging.info(\"Message d\'information général\")
logging.warning(\"Attention !\")
logging.error(\"Une erreur est arrivée\")
logging.critical(\"Erreur critique\")
e38cutoff = SingleOutputEcospold2Importer(\"/home/360.1.466-BRIGHTWAY2/Database/ecoinvent 3.8_cutoff_ecoSpold02/dataset\")
你好, 我将导入 Ecoinvent,我想知道如何增加详细程度以了解 BW2 的每一个操作,以及如何在文件 .text 或 .log 中发送潜在错误,以便进一步检查。这种方法正确吗?
标签: python architecture environment-variables brightway