LogExceptHook

Inheritance diagram of LogExceptHook
class LogExceptHook(hook_to=None, name=None, level=40)[source]

A callable class that acts as an excepthook that logs the exception in the python logging system.

Parameters:
  • hook_to (callable) – callable excepthook that will be called at the end of this hook handling [default: None]

  • name (str) – logger name [default: None meaning use class name]

  • level (int) – log level [default: logging.ERROR]

Import from taurus.core.util.log as:

from taurus.core.util.log import LogExceptHook
report(*exc_info)[source]

Report an exception. Overwrite as necessary