LogExceptHook
digraph inheritanceed85797c9c {
bgcolor=transparent;
rankdir=UD;
ratio=compress;
size="8.0, 12.0";
"BaseExceptHook" [URL="taurus.core.util.excepthook-BaseExceptHook.html#taurus.core.util.excepthook.BaseExceptHook",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="A callable class that acts as an excepthook that handles an exception."];
"LogExceptHook" [URL="#taurus.core.util.log.LogExceptHook",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="A callable class that acts as an excepthook that logs the exception in"];
"BaseExceptHook" -> "LogExceptHook" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
- 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