【发布时间】:2017-06-05 17:42:27
【问题描述】:
我从一个在 Windows7Pro 下运行的 Traits/UI 应用程序得到这个:
> Exception occurred in traits notification handler. Please check the
> log file for details.
我在哪里可以找到它所说的日志文件?
【问题讨论】:
我从一个在 Windows7Pro 下运行的 Traits/UI 应用程序得到这个:
> Exception occurred in traits notification handler. Please check the
> log file for details.
我在哪里可以找到它所说的日志文件?
【问题讨论】:
1) 如果你的应用已经配置了日志文件,那么traits logging默认会存在,否则我认为不会有日志文件。配置简单;见https://docs.python.org/2/howto/logging.html#logging-to-a-file
2) 但该文件中的信息实际上可能对调试没有多大用处,除非您采取额外的步骤。见http://traits.readthedocs.io/en/latest/traits_user_manual/debugging.html#re-raising-exceptions-in-change-handlers
【讨论】: