【问题标题】:Where does the Traits/UI notification exception handler put its log file?Traits/UI 通知异常处理程序将其日志文件放在哪里?
【发布时间】:2017-06-05 17:42:27
【问题描述】:

我从一个在 Windows7Pro 下运行的 Traits/UI 应用程序得到这个:

> Exception occurred in traits notification handler. Please check the
> log file for details.

我在哪里可以找到它所说的日志文件?

【问题讨论】:

    标签: python enthought traitsui


    【解决方案1】:

    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

    【讨论】:

      猜你喜欢
      • 2016-06-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-05
      • 2011-08-08
      • 1970-01-01
      相关资源
      最近更新 更多