관리-도구
편집 파일: loguru.cpython-311.pyc
� �܋f� � � � d dl mZ d dlZd dlmZ d dlmZmZ d dlm Z m Z mZ erd dlm Z d dlmZmZ d dlZd dlmZ d d lmZ n# e$ r ed � � �w xY w G d� dej � � Zej j Zej j Zd a G d� de� � Z G d� de� � Z G d� de e � � Z! G d� de e � � Z"dS )� )�absolute_importN)� TYPE_CHECKING)�Integration�DidNotEnable)�BreadcrumbHandler�EventHandler�_BaseHandler)� LogRecord)�Optional�Tuple)�logger)� LOGURU_FORMATzLOGURU is not installedc �* � e Zd ZdZdZdZdZdZdZdZ dS ) � LoggingLevels� � � � � �( �2 N) �__name__� __module__�__qualname__�TRACE�DEBUG�INFO�SUCCESS�WARNING�ERROR�CRITICAL� � �o/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/sentry_sdk/integrations/loguru.pyr r s1 � � � � � � �E��E� �D��G��G��E��H�H�Hr# r )NNc �8 � e Zd ZdZeeeefd�Zed� � � Z dS )�LoguruIntegration�loguruc � � t \ }}|�t j |� � d }|�t j |� � d }|�%t j t |�� � ||�� � }|�%t j t |�� � ||�� � }||fa d S )N)�level)r) �format)�_ADDED_HANDLERSr �remove�add�LoguruBreadcrumbHandler�LoguruEventHandler)�selfr) �event_level�breadcrumb_format�event_format�breadcrumb_handler� event_handlers r$ �__init__zLoguruIntegration.__init__/ s� � � -<�)��M��)��M�,�-�-�-�!%���$��M�-�(�(�(� �M���!'��'�e�4�4�4��(�"� "� "�� �"�"�J�"��5�5�5�!�#�� � �M� .�}�=���r# c � � d S )Nr"