관리-도구
편집 파일: _log.cpython-310.pyc
o ƚRe� � @ sR d Z ddlZddlmZmZ dZG dd� dej�Zdedefd d �Z d 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 ZdZdedededdfdd�ZdS ) � VerboseLoggerzXCustom Logger, defining a verbose log-level VERBOSE is between INFO and DEBUG. �msg�args�kwargs�returnNc O s | j t|g|�R i |��S )N)�log�VERBOSE)�selfr r r � r ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/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 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 N)r r �typingr r r �Loggerr r r r r r r r �<module> s