Your IP : 18.216.156.226
�
i ft � @ s� d Z d Z d Z d Z d Z d Z d d l Z Gd d � d � Z e � Z e j Z e j
Z
e j Z e j Z e j
Z
e j Z d
d � Z d d
� Z d S)z,A simple log mechanism styled after PEP 282.� � � � � � Nc @ ss e Z d Z e d d � Z d d � Z d d � Z d d � Z d d
� Z d d � Z d
d � Z
d d � Z d S)�Logc C s
| | _ d S)N)� threshold)�selfr � r
�2/opt/alt/python34/lib64/python3.4/distutils/log.py�__init__ s zLog.__init__c C s� | t t t t t f k r4 t d t | � � � n | | j k r� | rV | | } n | t t t f k rw t j } n t j
} | j d k r� | j } | j
| d � j | � } n | j d | � | j � n d S)Nz%s wrong log level�strict�backslashreplacez%s
)�DEBUG�INFO�WARN�ERROR�FATAL�
ValueError�strr �sys�stderr�stdout�errors�encoding�encode�decode�write�flush)r �level�msg�args�streamr r
r
r �_log s
zLog._logc G s | j | | | � d S)N)r# )r r r r! r
r
r �log% s zLog.logc G s | j t | | � d S)N)r# r )r r r! r
r
r �debug( s z Log.debugc G s | j t | | � d S)N)r# r )r r r! r
r
r �info+ s zLog.infoc G s | j t | | � d S)N)r# r )r r r! r
r
r �warn. s zLog.warnc G s | j t | | � d S)N)r# r )r r r! r
r
r �error1 s z Log.errorc G s | j t | | � d S)N)r# r )r r r! r
r
r �fatal4 s z Log.fatalN)�__name__�
__module__�__qualname__r r r# r$ r% r&