HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/websocket/__pycache__/_logging.cpython-310.pyc
o

�_a��@s�dZ	ddlZe�d�ZzddlmZWney&Gdd�dej�ZYnwe�e��dagd�Z	e�
�fd	d
�Zdd�Zd
d�Z
dd�Zdd�Zdd�Zdd�Zdd�Zdd�ZdS)z

�N�	websocket)�NullHandlerc@seZdZdd�ZdS)rcCsdS�N�)�self�recordrr�4/usr/lib/python3/dist-packages/websocket/_logging.py�emit�zNullHandler.emitN)�__name__�
__module__�__qualname__r	rrrrrsrF)	�enableTrace�dump�error�warning�debug�trace�isEnabledForError�isEnabledForDebug�isEnabledForTracecCs&|a|rt�|�t�tj�dSdS)z�
    Turn on/off the traceability.

    Parameters
    ----------
    traceable: bool
        If set to True, traceability is enabled.
    N)�
_traceEnabled�_logger�
addHandler�setLevel�logging�DEBUG)�	traceable�handlerrrrr)s


�rcCs2trt�d|d�t�|�t�d�dSdS)Nz--- z ---z-----------------------�rrr)�title�messagerrrr9s

�rcC�t�|�dSr)rr��msgrrrr@�rcCr"r)rrr#rrrrDr%rcCr"r)rrr#rrrrHr%rcCstr	t�|�dSdSrrr#rrrrLs�rcC�t�tj�Sr)r�isEnabledForr�ERRORrrrrrQ�rcCr&r)rr'rrrrrrrUr)rcCstSr)rrrrrrYr
r)�__doc__r�	getLoggerrr�ImportError�Handlerrr�__all__�
StreamHandlerrrrrrrrrrrrrr�<module>s*
�