【发布时间】:2013-07-29 21:32:51
【问题描述】:
这都是 Python。我还在学习中……
我为我的 Python 应用程序编写了两个模块:Module1 和 Module2。
我需要将我的日志记录结果发送到三个不同的文件。 Module1 发送到 setup.log 和 setupdetails.log 文件和 Module2 发送到 runall.log
Module2 是我运行的应用程序。其中有一个调用 Module1 的导入语句。
因为我已经在my_dictionary 中配置了我的日志记录,所以哪个模块应该包含字典?哪个模块应该包含logging.config.dictConfig(my_dictionary) 函数?
你知道我在哪里可以找到一个很好的脚本以及如何使用dictConfig 的例子吗?
【问题讨论】:
标签: python logging dictionary module