o
    ADi                  	   @  s   d Z ddlmZ ddlmZ ddlmZ dZeZdZdZ	e	Z
d	Zd
ZdZeeee	e	eeedZdd e D ZeZeZdddZdddZdS )zL
Extracted log level data used by both stdlib and native log level filters.
    )annotations)Any   )	EventDict2   (         
   )critical	exceptionerrorwarnwarninginfodebugnotsetc                 C  s   i | ]\}}|d vr||qS ))r   r   r    ).0kvr   r   N/var/www/Datamplify/venv/lib/python3.10/site-packages/structlog/_log_levels.py
<dictcomp>&   s
    r   method_namestrreturnc                 C  s   | dkrdS | dkrdS | S )Nr   r   r   r   r   )r   r   r   r   map_method_name1   s
   r   loggerr   
event_dictr   c                 C  s   t ||d< |S )a  
    Add the log level to the event dict under the ``level`` key.

    Since that's just the log method name, this processor works with non-stdlib
    logging as well. Therefore it's importable both from `structlog.processors`
    as well as from `structlog.stdlib`.

    .. versionadded:: 15.0.0
    .. versionchanged:: 20.2.0
       Importable from `structlog.processors` (additionally to
       `structlog.stdlib`).
    .. versionchanged:: 24.1.0
       Added mapping from "exception" to "error"
    level)r   )r   r   r   r   r   r   add_log_level=   s   r    N)r   r   r   r   )r   r   r   r   r   r   r   r   )__doc__
__future__r   typingr   r   CRITICALFATALERRORWARNINGWARNINFODEBUGNOTSETNAME_TO_LEVELitemsLEVEL_TO_NAME_LEVEL_TO_NAME_NAME_TO_LEVELr   r    r   r   r   r   <module>   s8   
