관리-도구
편집 파일: _log.cpython-38.pyc
U &?�f� � @ sT d Z ddlZddlmZmZ dZG dd� dej�Zeed�dd �Z dd �dd�Z dS ) z�Customize logging Defines custom logger class for the `logger.verbose(...)` method. init_logging() must be called before any other modules that call logging.getLogger. � N)�Any�cast� c @ s$ e Zd ZdZeeedd�dd�ZdS )� VerboseLoggerzXCustom Logger, defining a verbose log-level VERBOSE is between INFO and DEBUG. N)�msg�args�kwargs�returnc O s | j t|f|�|�S )N)�log�VERBOSE)�selfr r r � r �F/opt/hc_python/lib/python3.8/site-packages/pip/_internal/utils/_log.py�verbose s zVerboseLogger.verbose)�__name__� __module__�__qualname__�__doc__�strr r r r r r r s r )�namer c C s t tt�| ��S )zBlogging.getLogger, but ensures our VerboseLogger class is returned)r r �logging� getLogger)r r r r r s r )r c C s t �t� t �td� dS )z�Register our VerboseLogger and VERBOSE log level. Should be called before any calls to getLogger(), i.e. in pip._internal.__init__ r N)r �setLoggerClassr �addLevelNamer r r r r �init_logging s r )r r �typingr r r �Loggerr r r r r r r r �<module> s