관리-도구
편집 파일: log.cpython-310.opt-1.pyc
o 6��f� � @ sl d Z dZdZdZdZdZddlZG dd � d �Ze� Zej Z ej Z ejZejZej Z ejZd d� Zdd � ZdS )z,A simple log mechanism styled after PEP 282.� � � � � � Nc @ sP e Zd Zefdd�Zdd� Zdd� Zdd� Zd d � Zdd� Z d d� Z dd� ZdS )�Logc C s || _ d S �N)� threshold)�selfr � r �4/opt/alt/python310/lib64/python3.10/distutils/log.py�__init__ s zLog.__init__c C s� |t ttttfvrtdt|� ��|| jkrV|r|| }|tttfv r'tj }ntj }z |�d| � W n tyO |j }|�|d��|�}|�d| � Y nw |�� d S d S )Nz%s wrong log levelz%s �backslashreplace)�DEBUG�INFO�WARN�ERROR�FATAL� ValueError�strr �sys�stderr�stdout�write�UnicodeEncodeError�encoding�encode�decode�flush)r �level�msg�args�streamr r r r �_log s"