Ë
    ëÏjd  ã                  óN   — d Z ddlmZ ddlmZ ddlmZ ddlmZ  G d„ de«      Z	y)	z.
Generic bound logger that can wrap anything.
é    )Úannotations)Úpartial)ÚAny)ÚBoundLoggerBasec                  ó(   — e Zd ZdZdd„Zdd„Zdd„Zy)	ÚBoundLoggeraÐ  
    A generic BoundLogger that can wrap anything.

    Every unknown method will be passed to the wrapped *logger*. If that's too
    much magic for you, try `structlog.stdlib.BoundLogger` or
    `structlog.twisted.BoundLogger` which also take advantage of knowing the
    wrapped class which generally results in better performance.

    Not intended to be instantiated by yourself.  See
    :func:`~structlog.wrap_logger` and :func:`~structlog.get_logger`.
    c                óX   — |dk(  ryt        | j                  |«      }t        | ||«       |S )zX
        If not done so yet, wrap the desired logger method & cache the result.
        Ú__deepcopy__N)r   Ú_proxy_to_loggerÚsetattr)ÚselfÚmethod_nameÚwrappeds      úO/var/www/html/gaurav-v2/venv/lib/python3.12/site-packages/structlog/_generic.pyÚ__getattr__zBoundLogger.__getattr__   s2   € ð ˜.Ò(Øä˜$×/Ñ/°Ó=ˆÜ��k 7Ô+àˆó    c                ó   — | j                   S )ú=
        Our __getattr__ magic makes this necessary.
        )Ú__dict__)r   s    r   Ú__getstate__zBoundLogger.__getstate__+   s   € ð �}‰}Ðr   c                óN   — |j                  «       D ]  \  }}t        | ||«       Œ y)r   N)Úitemsr   )r   ÚstateÚkÚvs       r   Ú__setstate__zBoundLogger.__setstate__1   s$   € ð —K‘K–M‰DˆAˆqÜ�D˜!˜QÕñ "r   N)r   ÚstrÚreturnr   )r   údict[str, Any])r   r   r   ÚNone)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   © r   r   r   r      s   „ ñ
ó
óô r   r   N)
r$   Ú
__future__r   Ú	functoolsr   Útypingr   Ústructlog._baser   r   r%   r   r   Ú<module>r*      s$   ðñõ #å Ý å +ô$ �/õ $ r   