a
    ¨ˆc4  ã                   @   s    d dl Z d dlmZ dd„ ZdS )é    N)Úformat_exceptionc                 C   sH   d}t | ||ƒ}d |¡}t|jdi ƒ dt¡}t |¡}| |¡ dS )z. Pass on the exception to the logging system. z,Custom - Traceback (most recent call last):
Ú Ú	f_globalsÚ__name__N)	r   ÚjoinÚgetattrÚtb_frameÚgetr   ÚloggingÚ	getLoggerÚerror)ÚtypeÚvalueÚ	tracebackÚmsgÚlistÚnameÚlogger© r   úd/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/apptools/logger/custom_excepthook.pyÚcustom_excepthook   s    
ÿ
r   )r
   r   r   r   r   r   r   r   Ú<module>   s   	